getPedTaskSequenceProgress
Returns the zero-based child index of a ped's active native UseSequence task.
Syntax
int getPedTaskSequenceProgress(ped thePed)GTA task mapping
0646 CTaskComplexUseSequenceSCM 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
thePedpedStreamed 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
Continue exploring
← Back to the Neon Lua API · How Native ped tasks and gang tags works →