mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-01 14:38:50 +00:00
18 lines
325 B
Plaintext
18 lines
325 B
Plaintext
Sets the number of slots available for an inventory.
|
|
|
|
```lua
|
|
exports.ox_inventory:SetSlotCount(inv, slots)
|
|
```
|
|
|
|
* inv: `table` or `string` or `number`
|
|
* 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)
|
|
```
|