Returns the amount a player can hold based on available weight.
exports.ox_inventory:CanCarryAmount(inv, item)
- inv:
table
orstring
ornumber
- item:
table
orstring
- Can be array to check multiple items.
Example:
-- Checks how much you can carry
amountToAdd = exports.ox_inventory:CanCarryAmount(inv, 'stone')
-- Adds the amount
exports.ox_inventory:AddItem(inv, 'stone', amountToAdd)