itemcount

Returns the number of items of an item ID in the players bags.

itemCount(itemid) : integer
-- alts
itemcount(itemid) : integer
items(itemid) : integer

Example

if items(HealthStone) == 0 then
return cast(CreateHealthStone, 'player')
end