function hasItem (client-side)
Available since version: 0.2.1
The function is used to retrieve the amount of the item the player/npc currently has.
Declaration
int hasItem(int id, string|Item item)
Parameters
intid: the player id.string|Itemitem: the item instance from Daedalus scripts or an item object.
Returns int
the item amount that player/npc currently has in inventory or 0 if player doesn't have the item.