LoadInventoryByIdentifier

Loads an inventory by identifier


Params

Name
Optional
Example

inventoryIdentifier

no

police_storage:5

Usage

local api = exports["bb_inventory"]:GetAPI()

local inventory = api.LoadInventoryByIdentifier("police_storage:5")
local inventory = exports["bb_inventory"]:LoadInventoryByIdentifier("police_storage:5")

print(json.encode(inventory))
---{
---    id = 1,
---    title = "default_storage",
---    icon = "default_storage",
---    identifier = "default_storage",
---    type = "PLAYER",
---    items = {},
---    category = "food",
---    sizeX = 6,
---    sizeY = 3,
---    maxWeight = 3000
---}

Last updated