From bb278982b20555acc9f848d3be92f89ec4568d73 Mon Sep 17 00:00:00 2001 From: Kasey FItton Date: Sat, 2 Nov 2024 20:14:09 +0000 Subject: [PATCH] tweak(es_extended/client/functions): make sure to pass args --- [core]/es_extended/client/functions.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/[core]/es_extended/client/functions.lua b/[core]/es_extended/client/functions.lua index 70b22e99e..ad95a6fbe 100644 --- a/[core]/es_extended/client/functions.lua +++ b/[core]/es_extended/client/functions.lua @@ -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