fix: update inventory accounts convar to include black_money

This commit is contained in:
Ihsan
2026-08-19 11:08:09 +05:30
parent 2f7bada4ab
commit 391c211882
@@ -15,10 +15,10 @@ local requiredMethods = {
} }
---Parses the inventory:accounts convar to build a lookup table. ---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> ---@return table<string, boolean>
local function getAccountList() local function getAccountList()
local convar = GetConvar("inventory:accounts", '["money"]') local convar = GetConvar("inventory:accounts", '["money", "black_money"]')
local ok, list = pcall(json.decode, convar) local ok, list = pcall(json.decode, convar)
if not ok or type(list) ~= "table" then if not ok or type(list) ~= "table" then