TasksClient

getSequenceProgress

GET_SEQUENCE_PROGRESS0x00A9010CFE1E3533

The GTA V native GET_SEQUENCE_PROGRESS of the TASK namespace, as LS:MP client scripts call it: the global function getSequenceProgress, in JavaScript and in Lua.

SignatureJavaScript
getSequenceProgress(ped: Ped): number
SignatureLua
getSequenceProgress(ped: Ped): integer

Usage

JavaScript
const result = getSequenceProgress(ped);
Lua
local result = getSequenceProgress(ped)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger

Returns

int JavaScript number, Lua integer

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

returned values:
0 to 7 = task that's currently in progress, 0 meaning the first one.
-1 no task sequence in progress.

Reference

Namespace
Tasks TASK
In the game
int GET_SEQUENCE_PROGRESS(Ped ped)
Hash
0x00A9010CFE1E3533

Open in the interactive natives reference