Skip to content

function spawnNpc (client-side)

Available since version: 0.1.1

This function will add npc to the current world.

Declaration

bool spawnNpc(int npcId, string instance = "PC_HERO")

Parameters

  • int npcId: the npc id.
  • string instance: the instance of the npc.

Returns bool

true when npc was successfully spawned, otherwise false.