Inventory:hasItem

Inventory:hasItem(uniqueID) This function returns whether the inventory has specific item or not.

For finding how many items are in an inventory, use Inventory:getItemCount

Arguments

 * string uniqueID

Return Values
The Item in the inventory.
 * Item

Examples
Prints the table of inventory data on that item if player has skull item in their inventory. for k,v in pairs(player.GetAll) do         if v:getChar:getInv:hasItem("skull") != false then PrintTable(v:getChar:getInv:hasItem("skull")) end end

Table can also be used as a true statement. If player has a skull then print their name. for k,v in pairs(player.GetAll) do         if v:getChar:getInv:hasItem("skull") then print(v:Name) end end