Workshop.codes
Create

Remove From Player Inventory Last updated January 30, 2026

Description

Removes a specified quantity of an item from a player's custom inventory. If the quantity to remove exceeds the amount held, the item is removed entirely with no error. Has no effect if the item is not present in the player's inventory.

Snippet

Remove From Player Inventory(Event Player, Custom String("Health Potion"), 1);

Properties

Returns: Void
Parameters: Player, Item, Quantity

Player
Type: Player, Default: Event Player
The player whose inventory will be modified.

Item
Type: String, Default: Custom String("")
The identifier of the item to remove.

Quantity
Type: Number, Default: 1
The number of the specified item to remove.

Workshop.codes