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:
trueIf item is not removed successfully:
falseLast updated
Was this helpful?