GetItemBy
Returns an item with the specified search options.
- findBy:
table
- name?
string
- name?
- itemHash?
string
- itemHash?
- slot?
number
- slot?
- quantity?
number
- quantity?
- meta?
ItemMetaData
- meta?
Returns InventoryItem
exports["avp_inv_4"]:GetItemBy(findBy)
Example
local res = exports["avp_inv_4"]:GetItemBy({
name = "backpack",
meta = {
drawable = 40
}
})
print(json.encode(res, {indent=true}))