getItemCount

Bridge.getItemCount(inventoryName, item, metadata)

Arguments

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

  • item (string): The item to count.

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

Returns

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

Example Usage

local count = Bridge.getItemCount("playerInventory", "apple")

print("Item Count: " .. count)

Return Structure

If item is found in the inventory:

number of items

If item is not found in the inventory:

0

Last updated