mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 01:08:54 +00:00
tweak(es_extended/callback): remove GetCallbackInfo
This commit is contained in:
@@ -135,12 +135,6 @@ function ESX.DoesClientCallbackExist(eventName)
|
||||
return Callbacks.storage[eventName] ~= nil
|
||||
end
|
||||
|
||||
---@param eventName string
|
||||
---@return table | nil
|
||||
function ESX.GetClientCallbackInfo(eventName)
|
||||
return Callbacks.storage[eventName]
|
||||
end
|
||||
|
||||
AddEventHandler("onResourceStop", function(resource)
|
||||
for k, v in pairs(Callbacks.storage) do
|
||||
if v.resource == resource then
|
||||
|
||||
@@ -97,12 +97,6 @@ function ESX.DoesServerCallbackExist(eventName)
|
||||
return Callbacks.storage[eventName] ~= nil
|
||||
end
|
||||
|
||||
---@param eventName string
|
||||
---@return table | nil
|
||||
function ESX.GetServerCallbackInfo(eventName)
|
||||
return Callbacks.storage[eventName]
|
||||
end
|
||||
|
||||
AddEventHandler("onResourceStop", function(resource)
|
||||
for k, v in pairs(Callbacks.storage) do
|
||||
if v.resource == resource then
|
||||
|
||||
Reference in New Issue
Block a user