diff --git a/docs/ox_inventory/Functions/Server/Inventory/SetMaxWeight.md b/docs/ox_inventory/Functions/Server/Inventory/SetMaxWeight.md new file mode 100644 index 00000000..030b322b --- /dev/null +++ b/docs/ox_inventory/Functions/Server/Inventory/SetMaxWeight.md @@ -0,0 +1,17 @@ +Sets the maximum weight available for an inventory. + +```lua +exports.ox_inventory:SetSlotCount(inv, maxWeight) +``` + +* inv: `string` or `number` or `table` +* maxWeight: `number` + +**Example:** + +```lua +local ox_inventory = exports.ox_inventory + +-- Set the max weight for player 1's inventory to 20kg. +ox_inventory:maxWeight(1, 20000) +``` diff --git a/docs/ox_inventory/Functions/Server/Inventory/SetSlotCount.md b/docs/ox_inventory/Functions/Server/Inventory/SetSlotCount.md new file mode 100644 index 00000000..788dc85d --- /dev/null +++ b/docs/ox_inventory/Functions/Server/Inventory/SetSlotCount.md @@ -0,0 +1,17 @@ +Sets the number of slots available for an inventory. + +```lua +exports.ox_inventory:SetSlotCount(inv, slots) +``` + +* inv: `string` or `number` or `table` +* slots: `number` + +**Example:** + +```lua +local ox_inventory = exports.ox_inventory + +-- Set the slot count for player 1's inventory to 10. +ox_inventory:SetSlotCount(1, 10) +```