Skip to content

function giveItem (server-side)

Available since version: 0.3.0

Give an item to a player or NPC.

Declaration

bool giveItem(int player_id, string instance, int amount)

Parameters

  • int player_id: Target player id.
  • string instance: Item instance name from scripts.
  • int amount: Amount to give.

Returns bool

True on success.