Skip to content

function giveItem (client-side)

Available since version: 0.3.0

Give an item to a player or NPC on the client.

Declaration

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

Parameters

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

Returns bool

True on success.