canCarryItem

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

Arguments

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

  • item (string): The item to check.

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

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

Returns

  • canCarry (boolean): Whether the item can be carried.

Example Usage

local canCarry = Bridge.canCarryItem("playerInventory", "apple", 10)

print("Can Carry Item: " .. tostring(canCarry))

Return Structure

If item can be carried:

true

If item cannot be carried:

false

Last updated