Skip to main content

RegisterStash

Creates a new Stash inventory.

  • data: table -> StashInventoryClassCreate
    • uniqueID string
    • maxWeight number
    • inventoryName string
    • isPublic? boolean
    • ownerLicense? string
    • groups? { [string]: number }
    • isPermanent? boolean If set to true then it will not save the items in the sql, and this can be used as loot system.

If the isPublic variable is set to true then it will ignore who is the ownerLicense, and the groups.

exports["avp_inv_4"]:RegisterStash(data)
Example
exports["avp_inv_4"]:RegisterStash({
isPublic = true,
isPermanent = true,
inventoryName = "Loot Box",
maxWeight = 100,
slotsAmount = 15,
uniqueID = "random-loot-1",
groups = {
["police"] = 2,
["ambulance"] = 1,
["ballas"] = 3
}
})