Inventory:sync - brianhang/nutscript2 GitHub Wiki
Description
Inventory:sync(recipient)
This server function sends the inventory's information to the given recipient.
Parameters
| Name | Description |
|---|---|
recipient |
Who receives the inventory information. The recipient can be a table of Players to network to multiple players, a single Player for just one player, or nil to just network it to the inventory's owner. |
Side Effects
- Data about the inventory (items, custom data, etc...) are networked to the
recipient.