mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 01:08:54 +00:00
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()
|
RegisterNetEvent('esx_identity:showRegisterIdentity', function()
|
||||||
TriggerEvent('esx_skin:resetFirstSpawn')
|
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
|
if not ESX.PlayerData.dead then setGuiState(true) end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
@@ -66,4 +69,4 @@ if not Config.UseDeferrals then
|
|||||||
end
|
end
|
||||||
end, data)
|
end, data)
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user