mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-28 17:01:14 +00:00
Merge pull request #1865 from rwixy/black_money-fix
fix: update inventory accounts convar to include black_money
This commit is contained in:
@@ -15,10 +15,10 @@ local requiredMethods = {
|
||||
}
|
||||
|
||||
---Parses the inventory:accounts convar to build a lookup table.
|
||||
---Uses the same default and JSON format as ox_inventory.
|
||||
---Uses the same default and JSON format as ox_inventory ["money", "black_money"].
|
||||
---@return table<string, boolean>
|
||||
local function getAccountList()
|
||||
local convar = GetConvar("inventory:accounts", '["money"]')
|
||||
local convar = GetConvar("inventory:accounts", '["money", "black_money"]')
|
||||
local ok, list = pcall(json.decode, convar)
|
||||
|
||||
if not ok or type(list) ~= "table" then
|
||||
|
||||
Reference in New Issue
Block a user