Files
overextended.github.io/pages/ox_inventory/Functions/Server/Inventory/GetItemCount.mdx
T
2023-06-04 15:15:21 +02:00

14 lines
367 B
Plaintext

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?`