Skip to content

function giveItem (server-side)

Available since version: 0.0.1

This function is used to give item for player.

Declaration

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

Parameters

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