mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-04 16:23:21 +00:00
Changed NuiReady to camelCase
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
local NuiReady = false
|
local nuiReady = false
|
||||||
|
|
||||||
CreateThread(function()
|
CreateThread(function()
|
||||||
while not ESX.PlayerLoaded do
|
while not ESX.PlayerLoaded do
|
||||||
@@ -16,11 +16,11 @@ end)
|
|||||||
-- Events
|
-- Events
|
||||||
|
|
||||||
ESX.SecureNetEvent("esx_multicharacter:SetupUI", function(data, slots)
|
ESX.SecureNetEvent("esx_multicharacter:SetupUI", function(data, slots)
|
||||||
if not NuiReady then
|
if not nuiReady then
|
||||||
print('[WARNING]', 'NUI not ready yet, awaiting...')
|
print('[WARNING]', 'NUI not ready yet, awaiting...')
|
||||||
ESX.Await(function()
|
ESX.Await(function()
|
||||||
return NuiReady == true
|
return nuiReady == true
|
||||||
end, 'NUI Failed to load after 3000ms', 3000)
|
end, 'NUI Failed to load after 10000ms', 10000)
|
||||||
end
|
end
|
||||||
Multicharacter:SetupUI(data, slots)
|
Multicharacter:SetupUI(data, slots)
|
||||||
end)
|
end)
|
||||||
@@ -55,6 +55,6 @@ if Config.Relog then
|
|||||||
end
|
end
|
||||||
|
|
||||||
RegisterNuiCallback('nuiReady', function(_, cb)
|
RegisterNuiCallback('nuiReady', function(_, cb)
|
||||||
NuiReady = true
|
nuiReady = true
|
||||||
cb(1)
|
cb(1)
|
||||||
end)
|
end)
|
||||||
Reference in New Issue
Block a user