From 28670480bc897f8e043e7cee5875f05ec75a7b36 Mon Sep 17 00:00:00 2001 From: Kenshin13 <63159154+Kenshiin13@users.noreply.github.com> Date: Wed, 13 Aug 2025 15:00:39 +0200 Subject: [PATCH] fix(es_extended/shared/functions): fix ESX.GetConfig bug --- [core]/es_extended/shared/functions.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/[core]/es_extended/shared/functions.lua b/[core]/es_extended/shared/functions.lua index 4b84d33c..8c39e2f5 100644 --- a/[core]/es_extended/shared/functions.lua +++ b/[core]/es_extended/shared/functions.lua @@ -31,7 +31,11 @@ end ---@param key? string Key pair to get specific value of config ---@return unknown Returns the whole config if no key is passed, or a specific value function ESX.GetConfig(key) - return key and Config[key] or Config + if key then + return Config[key] + end + + return Config end ---@param weaponName string