mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-30 17:58:54 +00:00
Fix give item close + TriggerServerCallback debug message
This commit is contained in:
@@ -931,7 +931,7 @@ ESX.ShowInventory = function()
|
||||
|
||||
end,
|
||||
function(data2, menu2)
|
||||
menu.close()
|
||||
menu2.close()
|
||||
end
|
||||
)
|
||||
|
||||
|
||||
@@ -25,7 +25,13 @@ ESX.RegisterServerCallback = function(name, cb)
|
||||
end
|
||||
|
||||
ESX.TriggerServerCallback = function(name, requestId, source, cb, ...)
|
||||
ESX.ServerCallbacks[name](source, cb, ...)
|
||||
|
||||
if ESX.ServerCallbacks[name] ~= nil then
|
||||
ESX.ServerCallbacks[name](source, cb, ...)
|
||||
else
|
||||
print('TriggerServerCallback => [' .. name .. '] does not exists')
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
ESX.SavePlayer = function(xPlayer, cb)
|
||||
|
||||
Reference in New Issue
Block a user