mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 00:01:20 +00:00
Merge branch 'get-cfg' into player-data
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user