mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-02 14:38:50 +00:00
Update SetMaxWeight.md
This commit is contained in:
1 parent
54f33e2e97
commit
0f67712561
1 file changed
+2
-2
@@ -1,7 +1,7 @@
|
||||
Sets the maximum weight available for an inventory.
|
||||
|
||||
```lua
|
||||
exports.ox_inventory:SetSlotCount(inv, maxWeight)
|
||||
exports.ox_inventory:SetMaxWeight(inv, maxWeight)
|
||||
```
|
||||
|
||||
* inv: `string` or `number` or `table`
|
||||
@@ -13,5 +13,5 @@ exports.ox_inventory:SetSlotCount(inv, maxWeight)
|
||||
local ox_inventory = exports.ox_inventory
|
||||
|
||||
-- Set the max weight for player 1's inventory to 20kg.
|
||||
ox_inventory:maxWeight(1, 20000)
|
||||
ox_inventory:SetMaxWeight(1, 20000)
|
||||
```
|
||||
Reference in new issue
Block a user