fix(es_extended/imports.lua): Add Checks

This commit is contained in:
Meyndflay
2025-06-12 07:37:31 +08:00
parent fe456264a5
commit b17ec84071
+7 -2
View File
@@ -20,8 +20,13 @@ local function TrackPedCoordsOnce()
end
if not IsDuplicityVersion() then -- Only register this event for the client
-- On Resource Start
local OnStart = (function()
-- On Resource Restarts
local OnResourceRestart = (function()
if not ESX.PlayerLoaded or not ESX.PlayerData then
-- Player hasn't loaded yet
return
end
TrackPedCoordsOnce()
end)()