From e8f461fe563c384d0781bed206b9776a9653b85b Mon Sep 17 00:00:00 2001 From: Andyyy7666 <86536434+Andyyy7666@users.noreply.github.com> Date: Thu, 11 Aug 2022 01:16:49 +0200 Subject: [PATCH] feat(core): added update last location on client. --- ND_Core/server/main.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/ND_Core/server/main.lua b/ND_Core/server/main.lua index e59b548..62868ea 100644 --- a/ND_Core/server/main.lua +++ b/ND_Core/server/main.lua @@ -17,6 +17,7 @@ CreateThread(function() if DoesEntityExist(ped) then local lastLocation = GetEntityCoords(ped) playerInfo.lastLocation = {x = lastLocation.x, y = lastLocation.y, z = lastLocation.z} + TriggerClientEvent("ND:updateLastLocation", player, playerInfo.lastLocation) end end end