Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function drawTxt( text, x, y )
- SetTextFont( 0 )
- SetTextProportional( 0 )
- SetTextScale( 0.3, 0.3 )
- SetTextColour( 255, 255, 255, 255 )
- SetTextDropShadow( 0, 0, 0, 0, 255 )
- SetTextEdge( 1, 0, 0, 0, 255 )
- SetTextDropShadow()
- SetTextOutline()
- SetTextCentre( 0 )
- SetTextEntry( "STRING" )
- AddTextComponentString( text )
- DrawText( x, y )
- end
- Citizen.CreateThread( function()
- while true do
- Wait( 0 )
- local cpos = GetEntityCoords( GetPlayerPed( -1 ) )
- local hdng = GetEntityHeading( GetPlayerPed( -1 ) )
- drawTxt( string.format( "x: %.3f", cpos.x ), 0.005, 0.005 )
- drawTxt( string.format( "y: %.3f", cpos.y ), 0.055, 0.005 )
- drawTxt( string.format( "z: %.3f", cpos.z ), 0.105, 0.005 )
- drawTxt( string.format( "a: %.3f", hdng ), 0.155, 0.005 )
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement