string name -- Name of the invItemDef to check for.
boolean
idPlayer
Returns whether the player has the specified weapon in their inventory.