Update SetMaxWeight.md

This commit is contained in:
Linden authored and GitHub committed 2023-02-24 13:49:56 +11:00
1 parent 54f33e2e97
commit 0f67712561
1 file changed
+2 -2
@@ -1,7 +1,7 @@
Sets the maximum weight available for an inventory. Sets the maximum weight available for an inventory.
```lua ```lua
exports.ox_inventory:SetSlotCount(inv, maxWeight) exports.ox_inventory:SetMaxWeight(inv, maxWeight)
``` ```
* inv: `string` or `number` or `table` * inv: `string` or `number` or `table`
@@ -13,5 +13,5 @@ exports.ox_inventory:SetSlotCount(inv, maxWeight)
local ox_inventory = exports.ox_inventory local ox_inventory = exports.ox_inventory
-- Set the max weight for player 1's inventory to 20kg. -- Set the max weight for player 1's inventory to 20kg.
ox_inventory:maxWeight(1, 20000) ox_inventory:SetMaxWeight(1, 20000)
``` ```