mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 03:01:31 +00:00
fix(es_extended/imports.lua): Add Checks
This commit is contained in:
@@ -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)()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user