Skip to content

Commit

Permalink
fix(es_extended/imports): wait for ped to be set before setting Playe…
Browse files Browse the repository at this point in the history
…rLoaded
  • Loading branch information
Kenshiin13 committed Dec 22, 2024
1 parent f7eb0ca commit 3a3c3f1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions [core]/es_extended/imports.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 3a3c3f1

Please sign in to comment.