Container.setItem
Sets the number of items stacked in a given container slot.
Kind: Function
Environments: Game
Game
container:setItem( slot, itemUuid, quantity, instance )
Availability: Server only
Parameters:
| Name | Type | Description |
|---|---|---|
container |
Container | The container. |
slot |
integer | The slot. |
itemUuid |
Uuid | The uuid of the item. |
quantity |
integer | The number of items. |
instance (optional) |
integer | The instance id, if the item is a tool. (Optional) |
Returns:
| Type | Description |
|---|---|
| boolean | Indicates if the action is possible. |