Files
overextended.github.io/docs/ox_inventory/Functions/Server/Inventory/CanCarryAmount.md
T
2022-12-11 15:00:43 +11:00

416 B

Returns the amount a player can hold based on available weight.

exports.ox_inventory:CanCarryAmount(inv, item)
  • inv: string or number
  • item: table or string
    • 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)