Skip to content

getPedTaskSequenceProgress

Client-side

Available in Neon, not standard MTA

Returns the zero-based child index of a ped's active native UseSequence task.

Syntax

int getPedTaskSequenceProgress(ped thePed)

GTA task mapping

ORIGINAL GTA TASK 0646
CTaskComplexUseSequence

SCM equivalent: GET_SEQUENCE_PROGRESS

This reads GTA's active UseSequence object. It is an observation, not a completion event or resource-owned sequence handle.

Arguments

thePedped

Streamed ped whose active task hierarchy should be inspected.

Returns

The current zero-based task index, or -1 when the ped is unavailable or has no active UseSequence task.

Ownership and lifecycle

Low-level ped task calls require the client that simulates the living, streamed ped. Driving tasks also require control of the streamed vehicle. They do not create lifecycle handles; the optional native-task-runtime adds server-owned route epochs and reconstruction for drive_to routes. Gang-tag ownership is resource-exclusive, survives object streaming and recreation, and is released automatically when the owner stops.

OOP aliases

  • ped:getTaskSequenceProgress()

Where this comes from

RELATED NEON APIS

Continue exploring

Read the system guide →