getSequenceProgress
GET_SEQUENCE_PROGRESS0x00A9010CFE1E3533The 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.
getSequenceProgress(ped: Ped): numbergetSequenceProgress(ped: Ped): integerUsage
JavaScript
const result = getSequenceProgress(ped);Lua
local result = getSequenceProgress(ped)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
Returns
int JavaScript number, Lua integerNotes
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