openSequenceTask
OPEN_SEQUENCE_TASK0xE8854A4326B9E12BThe GTA V native OPEN_SEQUENCE_TASK of the TASK namespace, as LS:MP client scripts call it: the global function openSequenceTask, in JavaScript and in Lua.
openSequenceTask(): numberopenSequenceTask(): integerUsage
JavaScript
const taskSequenceId = openSequenceTask();Lua
local taskSequenceId = openSequenceTask()Parameters
None. The game writes the output: it is handed back, not passed in.
Returns
The output: the value of the call in JavaScript, the return value in Lua.
| # | Value | Type | JavaScript | Lua | Description |
|---|---|---|---|---|---|
| 1 | taskSequenceId | int | number | integer | The id of the sequence just opened. Give it to the tasks you add, to closeSequenceTask and to taskPerformSequence. output |
Reference
- Namespace
- Tasks TASK
- In the game
void OPEN_SEQUENCE_TASK(int* taskSequenceId)- Hash
0xE8854A4326B9E12B