mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-28 23:01:26 +00:00
Merge pull request #756 from ITKewai/main
esx_identity: fix NUI not loading on low-end pc
This commit is contained in:
@@ -44,7 +44,10 @@ if not Config.UseDeferrals then
|
||||
|
||||
RegisterNetEvent('esx_identity:showRegisterIdentity', function()
|
||||
TriggerEvent('esx_skin:resetFirstSpawn')
|
||||
|
||||
while not ready do
|
||||
print('Waiting for esx_identity NUI..')
|
||||
Wait(100)
|
||||
end
|
||||
if not ESX.PlayerData.dead then setGuiState(true) end
|
||||
end)
|
||||
|
||||
@@ -66,4 +69,4 @@ if not Config.UseDeferrals then
|
||||
end
|
||||
end, data)
|
||||
end)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user