TasksClient

clearSequenceTask

CLEAR_SEQUENCE_TASK0x3841422E9C488D8C

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

SignatureJavaScript
clearSequenceTask(taskSequenceId: number): void
SignatureLua
clearSequenceTask(taskSequenceId: integer)
⚠
Known issue

The value of taskSequenceId does not reach the game yet: LS:MP currently treats this pointer as an output, so the game receives an empty value instead of yours.

Usage

JavaScript
clearSequenceTask(taskSequenceId);
Lua
clearSequenceTask(taskSequenceId)

Parameters

ParameterTypeJavaScriptLua
taskSequenceIdintnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Tasks TASK
In the game
void CLEAR_SEQUENCE_TASK(int* taskSequenceId)
Hash
0x3841422E9C488D8C

Open in the interactive natives reference