mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-01 22:21:48 +00:00
14 lines
356 B
Plaintext
14 lines
356 B
Plaintext
Get data all slots in an inventory matching the given name and metadata.
|
|
|
|
```lua
|
|
exports.ox_inventory:GetSlotsWithItem(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:** `table[]?`
|