Fires when the player equips or unequips an item

Signature:

(slot, hasItem)

Arguments:

  • slot - The inventory slot affected by the equipment change. (number, inventoryID)
  • hasItem - 1 if the slot contains an item, otherwise nil. (1nil)