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
intid: the player id.Itemitem: the item object. For more information see Item class.intamount: the amount of item, e.g:1000gold coins.