Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
pos = GetEntityCoords(GetPlayerPed(-1))
heading = GetEntityHeading(GetPlayerPed(-1))
WriteCoords("x : " .. tostring(pos.x), 0.8, 0.49)
WriteCoords("y : " .. tostring(pos.y), 0.8, 0.51)
WriteCoords("z : " .. tostring(pos.z), 0.8, 0.53)
WriteCoords("a : " .. tostring(heading), 0.8, 0.55)
end
end)
function WriteCoords(txt, x, y)
SetTextFont(0)
SetTextProportional(0)
SetTextScale(0.4, 0.4)
SetTextColour(255, 255, 255, 255)
SetTextEntry("STRING")
AddTextComponentString(txt)
DrawText(x, y)
end
credits Player coordinates in subtilte