Inventory:setOwner - brianhang/nutscript2 GitHub Wiki
Description
Inventory:setOwner(newOwner)
This server function transfers the ownership of an inventory to another player.
Parameters
| Name | Description |
|---|---|
newOwner |
The number ID of the new owner. This can also be a Character. |
Side Effects
- The inventory's owner of changed.
- Access to the inventory is changed.
Errors
newOwneris neither anumbernorCharacter