Skip to content

Commit 2867048

Browse files
committed
fix(es_extended/shared/functions): fix ESX.GetConfig bug
1 parent 2c285e1 commit 2867048

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

[core]/es_extended/shared/functions.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,11 @@ end
3131
---@param key? string Key pair to get specific value of config
3232
---@return unknown Returns the whole config if no key is passed, or a specific value
3333
function ESX.GetConfig(key)
34-
return key and Config[key] or Config
34+
if key then
35+
return Config[key]
36+
end
37+
38+
return Config
3539
end
3640

3741
---@param weaponName string

0 commit comments

Comments
 (0)