Advertisement
Guest User

Untitled

a guest
Jan 10th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.79 KB | None | 0 0
  1. function drawTxt( text, x, y )
  2.     SetTextFont( 0 )
  3.     SetTextProportional( 0 )
  4.     SetTextScale( 0.3, 0.3 )
  5.     SetTextColour( 255, 255, 255, 255 )
  6.     SetTextDropShadow( 0, 0, 0, 0, 255 )
  7.     SetTextEdge( 1, 0, 0, 0, 255 )
  8.     SetTextDropShadow()
  9.     SetTextOutline()
  10.     SetTextCentre( 0 )
  11.     SetTextEntry( "STRING" )
  12.     AddTextComponentString( text )
  13.     DrawText( x, y )
  14. end
  15.  
  16. Citizen.CreateThread( function()
  17.     while true do
  18.         Wait( 0 )
  19.        
  20.         local cpos = GetEntityCoords( GetPlayerPed( -1 ) )
  21.         local hdng = GetEntityHeading( GetPlayerPed( -1 ) )
  22.        
  23.         drawTxt( string.format( "x: %.3f", cpos.x ), 0.005, 0.005 )
  24.         drawTxt( string.format( "y: %.3f", cpos.y ), 0.055, 0.005 )
  25.         drawTxt( string.format( "z: %.3f", cpos.z ), 0.105, 0.005 )
  26.         drawTxt( string.format( "a: %.3f", hdng ),   0.155, 0.005 )
  27.     end
  28. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement