Skip to content

function giveItem (client-side)

Available since version: 0.2

This function is used to give item for player/npc.


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


  • int id: the player id.
  • int itemId: the item id to give for npc, e.g"ITMI_GOLD").
  • int amount: the amount of item, e.g: 1000 gold coins.