mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-01 14:38:50 +00:00
17 lines
364 B
Plaintext
17 lines
364 B
Plaintext
---
|
|
keywords: ['hasitem']
|
|
---
|
|
|
|
Get the total item count for all items in the player's inventory with the given name and metadata.
|
|
|
|
```lua
|
|
exports.ox_inventory:GetItemCount(itemName, metadata, strict)
|
|
```
|
|
|
|
- itemName: `string`
|
|
- metadata?: `table`
|
|
- strict?: `boolean`
|
|
- Strictly match metadata properties, otherwise use partial matching.
|
|
|
|
**Returns:** `number?`
|