InventoryService
Service for handling inventory actions.
Last updated
Service for handling inventory actions.
Last updated
Example usage:
Gives a player a specified number of an item. If playWorldEffect
is true, an effect will play showing the recipient getting their items.
Returns amount of specified item the player has (0 if they have none).
Removes the amount of the item from the player's inventory.
Clears all items from the player's inventory.
Returns a table of the amount of each item the player has in their inventory - including armor and hand items.
Example: