Merge pull request #756 from ITKewai/main

esx_identity: fix NUI not loading on low-end pc
This commit is contained in:
Benzo
2022-12-19 17:47:28 +01:00
committed by GitHub
+5 -2
View File
@@ -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