mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-08-17 05:56:01 +01:00
feat(core): added update last location on client.
This commit is contained in:
@@ -17,6 +17,7 @@ CreateThread(function()
|
|||||||
if DoesEntityExist(ped) then
|
if DoesEntityExist(ped) then
|
||||||
local lastLocation = GetEntityCoords(ped)
|
local lastLocation = GetEntityCoords(ped)
|
||||||
playerInfo.lastLocation = {x = lastLocation.x, y = lastLocation.y, z = lastLocation.z}
|
playerInfo.lastLocation = {x = lastLocation.x, y = lastLocation.y, z = lastLocation.z}
|
||||||
|
TriggerClientEvent("ND:updateLastLocation", player, playerInfo.lastLocation)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user