Custom Stash
Guide and export syntax for registering and opening custom inventories.
Register and Open Stash
Register a dynamic inventory and open the UI on the client:
-- Registers inventory if missing, then opens UI
exports['ak47_inventory']:OpenInventory({
identifier = 'stash:1234', -- Unique identifier
label = 'Housing Stash', -- Display label
type = 'stash', -- Inventory type
maxWeight = 120000, -- Maximum weight capacity
slots = 50, -- Maximum slot count
})| Parameter | Type | Required | Description |
|---|---|---|---|
identifier |
string | Yes | Unique stash identifier string |
label |
string | Yes | Display title in inventory UI |
type |
string | Yes | Inventory category type (stash) |
maxWeight |
number | Yes | Total carry weight capacity |
slots |
number | Yes | Total available slot count |
Open Existing Stash
Open an inventory that has already been registered:
exports['ak47_inventory']:OpenInventory('stash:1234')| Parameter | Type | Required | Description |
|---|---|---|---|
identifier |
string | Yes | Registered unique stash identifier |
On this page