removeItem

Bridge.removeItem(inventoryName, item, count, metadata)

Arguments

  • inventoryName (string): The name of the inventory.

  • item (string): The item to remove.

  • count (number): The quantity of the item.

  • metadata (table, optional): Additional metadata for the item.

Returns

  • success (boolean): Whether the item was successfully removed.

Example Usage

local success = Bridge.removeItem("playerInventory", "apple", 5)

print("Item Removed: " .. tostring(success))

Return Structure

If item is removed successfully:

true

If item is not removed successfully:

false

Last updated