mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-02 14:38:50 +00:00
new exports and convar
This commit is contained in:
1 parent
719b401c91
commit
22edfded40
8 files changed
+73
-4
No files matched your search
@@ -1,4 +1,4 @@
|
||||
Returns the item from the specified inventory.
|
||||
Returns _generic_ item data from the specified inventory, with the total count.
|
||||
|
||||
```lua
|
||||
exports.ox_inventory:GetItem(inv, item, metadata, returnsCount)
|
||||
@@ -8,12 +8,13 @@ exports.ox_inventory:GetItem(inv, item, metadata, returnsCount)
|
||||
* item: `table` or `string`
|
||||
* Can be items array.
|
||||
* metadata?: `any`
|
||||
* Only returns the count of items that strictly match the given metadata.
|
||||
* returnsCount?: `boolean`
|
||||
|
||||
If `returnsCount` is set to true, the returned value will be the `count` based on
|
||||
how many times the item was found.
|
||||
|
||||
Otherwise returns the data related to the item _and_ it's total count found in the inventory.
|
||||
Otherwise returns the data related to the item _and_ its total count found in the inventory.
|
||||
|
||||
**Example**:
|
||||
|
||||
|
||||
Reference in new issue
Block a user