CanPlayerCarryItem

Checks if a Player can carry an item


Params

Name
Optional
Example

source

no

1

itemName

no

bread

amount

no

1

Usage

local api = exports["bb_inventory"]:GetAPI()

local canCarryAny, canCarryAmount = api.CanPlayerCarryItem(1, "bread", 5)
local canCarryAny, canCarryAmount = exports["bb_inventory"]:CanPlayerCarryItem(1, "bread", 5)

print(canCarryAny, canCarryAmount)
--- true, 3

Last updated