Files
overextended.github.io/docs/ox_inventory/Functions/Server/Inventory/CanCarryAmount.md
T
tr1ckz da2e8cf018 CanCarryAmount.md
Fill in the missing doc for the new export.
2022-04-23 19:16:29 -04:00

377 B

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

---@param inv string | number
---@param item table | string
exports.ox_inventory:CanCarryAmount(inv, item)

Example:

-- Checks how much you can carry
amountToAdd = exports.ox_inventory:CanCarryAmount(inv, 'stone')
-- Adds the amount
exports.ox_inventory:AddItem(inv, 'stone', amountToAdd)