Skip to content

function removeItem (client-side)

Available since version: 0.2

This function is used to remove item from npc.

Declaration

void removeItem(int id, int itemId, int amount)

Parameters

  • int id: the npc id.
  • int itemId: the item id to remove from player, e.g Items.id("ITMI_GOLD").
  • int amount: the amount of item, e.g: 1000 gold coins.