mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 01:01:22 +00:00
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.
|
---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
|
||||||
|
|||||||
Reference in New Issue
Block a user