From 024a1a424732f33ca58a4b0da4fdca008349a00f Mon Sep 17 00:00:00 2001 From: IT-Kewai <44037081+ITKewai@users.noreply.github.com> Date: Sun, 18 Dec 2022 15:09:18 +0100 Subject: [PATCH] esx_identity: fix NUI not loading on low-end pc --- [esx]/esx_identity/client/main.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/[esx]/esx_identity/client/main.lua b/[esx]/esx_identity/client/main.lua index e3d6becc..0671c876 100644 --- a/[esx]/esx_identity/client/main.lua +++ b/[esx]/esx_identity/client/main.lua @@ -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 \ No newline at end of file +end