A FiveM developer tool to print the player's current vector3 position and heading into the F8 console for easy copy-pasting into FiveM config files.
Lua
RegisterCommand('coords', function()
local ped = PlayerPedId()
local coords = GetEntityCoords(ped)
local heading = GetEntityHeading(ped)
print(string.format("FiveM Position: vector3(%.2f, %.2f, %.2f) | Heading: %.2f", coords.x, coords.y, coords.z, heading))
end, false)Sign in to like this snippet.
Comments (0)
Sign in to comment.