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:
trueIf item cannot be carried:
falseLast updated
Was this helpful?