Files
Elite-Gaming-FiveM/resources/cadvanced_mdt/client/location.lua
T
2021-12-03 01:19:31 +00:00

9 lines
266 B
Lua

Citizen.CreateThread(function()
while true do
local pos = GetEntityCoords(GetPlayerPed(-1))
print_debug("SENDING LOCATION TO SERVER")
TriggerServerEvent('update_location', { x = pos.x, y = pos.y })
Citizen.Wait(5000)
end
end)