mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 22:01:28 +00:00
fix: prevent nui devtools register if panel closed
This commit is contained in:
@@ -50,6 +50,10 @@ if not Config.UseDeferrals then
|
||||
end)
|
||||
|
||||
RegisterNUICallback('register', function(data, cb)
|
||||
if not guiEnabled then
|
||||
return
|
||||
end
|
||||
|
||||
ESX.TriggerServerCallback('esx_identity:registerIdentity', function(callback)
|
||||
if not callback then
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user