Merge pull request #1699 from esx-framework/get-cfg

fix(es_extended/shared/functions): fix ESX.GetConfig bug
This commit is contained in:
Kenshin13
2025-08-13 17:23:21 +02:00
committed by GitHub
+5 -1
View File
@@ -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