Skip to content

function clearNpcActions (server-side)

Available since version: 0.3.0

Cancels the current action and all pending actions.

Declaration

boolean clearNpcActions(number npc_id)

Parameters

  • number npc_id: Server NPC id.

Returns boolean

True if cleared, including an empty queue; false for an invalid NPC or failed operation.