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

@@ -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**: