GetItemQuantityBy
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 number
exports["avp_inv_4"]:GetItemQuantityBy(findBy)
Example
local res = exports["avp_inv_4"]:GetItemQuantityBy({
name = "gold"
})
print(json.encode(res, {indent=true}))