Hooks InventoryCreated - brianhang/nutscript2 GitHub Wiki
Description
InventoryCreated(inventory)
This server hook is called after an inventory has been created with nut.item.createInv. At this point, the inventory exists in the database and as an object.
Parameters
| Name | Description |
|---|---|
inventory |
The Inventory that was just created. |
Example
-- Adds a test item to every inventory.
function GM:InventoryCreated(inventory)
inventory:add("test")
end