Skip to content

function setNpcHostPlayer (server-side)

Available since version: 0.3.0

This function sets new NPC host player.

Declaration

bool setNpcHostPlayer(int npc_id, int host_id)

Parameters

  • int npc_id: the npc identifier.
  • int host_id: the player host identifier.

Returns bool

true if host was successfully changed, otherwise false.