CanCarryItem
Checks if a player can carry additional items without exceeding weight limits.
Syntax:
Bridge.Inventory.CanCarryItem(src, item, count)
Parameters:
src
(number) - Player server IDitem
(string) - Name of the itemcount
(number) - Amount to check
Example:
local Bridge = exports['community_bridge']:Bridge()
if Bridge.Inventory.CanCarryItem(source, "gold_bar", 5) then
print("Player can carry 5 gold bars")
else
print("Player cannot carry that much weight")
end
Last updated