GetItemBy
Returns an item with the specified search options.
- inv:
number
orstring
- findBy:
table
- name?
string
- name?
- itemHash?
string
- itemHash?
- slot?
number
- slot?
- quantity?
number
- quantity?
- meta?
ItemMetaData
- meta?
The inv argument can be a number (as player ID) or the inventory uniqueID.
Returns InventoryItem
exports["avp_inv_4"]:GetItemBy(inv, findBy)
Example
local res = exports["avp_inv_4"]:GetItemBy("stash-1", {
name = "backpack",
meta = {
drawable = 40
}
})