RegisterStash
Creates a new Stash inventory.
- data:
table
->StashInventoryClassCreate
- uniqueID
string
- uniqueID
- maxWeight
number
- maxWeight
- inventoryName
string
- inventoryName
- isPublic?
boolean
- isPublic?
- ownerLicense?
string
- ownerLicense?
- groups?
{ [string]: number }
- groups?
- isPermanent?
boolean
If set totrue
then it will not save the items in the sql, and this can be used as loot system.
- isPermanent?
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
}
})