TasksClient1 output

openSequenceTask

OPEN_SEQUENCE_TASK0xE8854A4326B9E12B

The 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.

SignatureJavaScript
openSequenceTask(): number
SignatureLua
openSequenceTask(): integer

Usage

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.

#ValueTypeJavaScriptLuaDescription
1taskSequenceIdintnumberintegerThe 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

Open in the interactive natives reference