tweak(es_extended/client/functions): make sure to pass args

This commit is contained in:
Kasey FItton
2024-11-02 20:14:09 +00:00
parent 2bc9f83ffb
commit bb278982b2
+2 -2
View File
@@ -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