diff --git a/docs/ox_inventory/Functions/Server/Inventory/CanCarryAmount.md b/docs/ox_inventory/Functions/Server/Inventory/CanCarryAmount.md new file mode 100644 index 00000000..42a0ce03 --- /dev/null +++ b/docs/ox_inventory/Functions/Server/Inventory/CanCarryAmount.md @@ -0,0 +1,16 @@ +Returns the amount a player can hold based on available weight. + +```lua +---@param inv string | number +---@param item table | string +exports.ox_inventory:CanCarryAmount(inv, item) +``` + +Example: + +```lua +-- Checks how much you can carry +amountToAdd = exports.ox_inventory:CanCarryAmount(inv, 'stone') +-- Adds the amount +exports.ox_inventory:AddItem(inv, 'stone', amountToAdd) +```