Skip to content

function spawnNpc (client-side)

Available since version: 0.3.0

Spawn a previously created NPC into the world using an optional instance.

Declaration

bool spawnNpc(int npc_id, string|nil instance_name)

Parameters

  • int npc_id: Internal npc id.
  • string|nil instance_name: Optional instance name (e.g., "PC_HERO").

Returns bool

True if spawn attached to world.