From 3a8bd5dc7069cf26fbdd2aa64d8ab0d1e3f3b424 Mon Sep 17 00:00:00 2001 From: zykem#0643 <86602828+Zykem@users.noreply.github.com> Date: Sun, 6 Jul 2025 16:15:07 +0200 Subject: [PATCH] Changed NuiReady to camelCase --- [core]/esx_multicharacter/client/main.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/[core]/esx_multicharacter/client/main.lua b/[core]/esx_multicharacter/client/main.lua index 819c2066..aff57aa5 100644 --- a/[core]/esx_multicharacter/client/main.lua +++ b/[core]/esx_multicharacter/client/main.lua @@ -1,4 +1,4 @@ -local NuiReady = false +local nuiReady = false CreateThread(function() while not ESX.PlayerLoaded do @@ -16,11 +16,11 @@ end) -- Events ESX.SecureNetEvent("esx_multicharacter:SetupUI", function(data, slots) - if not NuiReady then + if not nuiReady then print('[WARNING]', 'NUI not ready yet, awaiting...') ESX.Await(function() - return NuiReady == true - end, 'NUI Failed to load after 3000ms', 3000) + return nuiReady == true + end, 'NUI Failed to load after 10000ms', 10000) end Multicharacter:SetupUI(data, slots) end) @@ -55,6 +55,6 @@ if Config.Relog then end RegisterNuiCallback('nuiReady', function(_, cb) - NuiReady = true + nuiReady = true cb(1) end) \ No newline at end of file