nut.item.newInv - brianhang/nutscript2 GitHub Wiki
Description
nut.item.newInv(id, owner)
This shared function creates an instance of an inventory that has an ID of id and belongs to owner. Note that this inventory only exists in memory, so it is not permanent.
Parameters
| Name | Description |
|---|---|
id |
A number for the numeric ID of the inventory. |
owner |
A number for the ID of the owner. |
Side Effects
- The inventory is stored in
nut.item.inventories