From 4e9344211064e129e3fdb22c14c67aca89171e84 Mon Sep 17 00:00:00 2001 From: Linden <65407488+thelindat@users.noreply.github.com> Date: Sat, 18 Feb 2023 18:16:37 +1100 Subject: [PATCH] add new ox_inventory exports --- .../Functions/Server/Inventory/SetMaxWeight.md | 17 +++++++++++++++++ .../Functions/Server/Inventory/SetSlotCount.md | 17 +++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 docs/ox_inventory/Functions/Server/Inventory/SetMaxWeight.md create mode 100644 docs/ox_inventory/Functions/Server/Inventory/SetSlotCount.md 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) +```