Code: Select all
item:isType("xxx")i tried these, which both do not work
Code: Select all
item:getType()
item.TypeCode: Select all
item:isType("xxx")Code: Select all
item:getType()
item.TypeCode: Select all
function CItem:isType(typename)Code: Select all
function CItem:getTypes()Code: Select all
for slot, item in pairs(inventory.BagSlot) do
local itemtype, itemsubtype, itemsubsubtype = item:getTypes()
--some code stuff here to use the info
end