new inventory exports

This commit is contained in:
Linden committed 2023-04-27 12:40:34 +10:00
1 parent 1afcdd80ae
commit 0bf84b936a
3 files changed
+81

No files matched your search

@@ -0,0 +1,9 @@
Get the first available empty slot in an inventory.
```lua
exports.ox_inventory:GetEmptySlot(inv)
```
- inv: `table` or `string` or `number`
**Returns:** `number?`
@@ -0,0 +1,11 @@
Get the slot id of an existing item matching the given data, or an empty slot.
```lua
exports.ox_inventory:GetSlotForItem(inv, itemName, metadata)
```
- inv: `table` or `string` or `number`
- itemName: `string`
- metadata: `table?`
**Returns:** `number?`