Skip to content

function giveItem (client-side)

Available since version: 0.3.9.0

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

Declaration

void giveItem(int id, Item item, int amount)

Parameters

  • int id: the player id.
  • Item item: the item object. For more information see Item class.
  • int amount: the amount of item, e.g: 1000 gold coins.