Skip to content

Commit

Permalink
tweak(es_extended/client/functions): make sure to pass args
Browse files Browse the repository at this point in the history
  • Loading branch information
Mycroft-Studios committed Nov 2, 2024
1 parent 2bc9f83 commit bb27898
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions [core]/es_extended/client/functions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bb27898

Please sign in to comment.