Storage:addItem
boolean Storage:addItem(id, amount, slot, metadata)
Adds the given item id to the ent storage (ent needs to be marked with setStorage)
Parameters
| Type | Name | Description | Optional |
|---|---|---|---|
| string | id | No description | |
| number | amount | Defaults: 1 | ✔ |
| number | slot | Defaults: -1 | ✔ |
| table | metadata | Defaults: nil | ✔ |
Returns
| Type | Description |
|---|---|
| boolean | No description |