new exports and convar

This commit is contained in:
Linden committed 2023-05-06 22:59:48 +10:00
1 parent 719b401c91
commit 22edfded40
8 files changed
+73 -4

No files matched your search

@@ -0,0 +1,13 @@
Get the total item count for all items in an inventory with the given name and metadata.
```lua
exports.ox_inventory:GetItemCount(inv, itemName, metadata, strict)
```
- inv: `table` or `string` or `number`
- itemName: `string`
- metadata?: `table`
- strict?: `boolean`
- Strictly match metadata properties, otherwise use partial matching.
**Returns:** `number?`