mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 01:08:54 +00:00
tweak(es_extended/client/functions): make sure to pass args
This commit is contained in:
@@ -12,12 +12,12 @@ end
|
||||
---@param func function
|
||||
---@return nil
|
||||
function ESX.SecureNetEvent(name, func)
|
||||
RegisterNetEvent(name, function()
|
||||
RegisterNetEvent(name, function(...)
|
||||
if source == '' then
|
||||
return
|
||||
end
|
||||
|
||||
local success, result = pcall(func)
|
||||
local success, result = pcall(func, ...)
|
||||
if not success then
|
||||
error(("%s"):format(result))
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user