function getNpcAction (server-side)
Available since version: 0.3.0
Returns a copy of an action's metadata. Index one is the queue head.
Declaration
{id, type, status, animation, timeoutMs}|nil getNpcAction(number npc_id, number index)
Parameters
numbernpc_id: Server NPC id.numberindex: One-based queue index.
Returns {id, type, status, animation, timeoutMs}|nil
Action snapshot, or nil for an invalid NPC or index.