mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 01:08:54 +00:00
fix(es_extended/imports): wait for ped to be set before setting PlayerLoaded
This commit is contained in:
@@ -14,6 +14,7 @@ if not IsDuplicityVersion() then -- Only register this event for the client
|
||||
|
||||
RegisterNetEvent("esx:playerLoaded", function(xPlayer)
|
||||
ESX.PlayerData = xPlayer
|
||||
while not ESX.PlayerData.ped or not DoesEntityExist(ESX.PlayerData.ped) do Wait(0) end
|
||||
ESX.PlayerLoaded = true
|
||||
end)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user