RedM Natives

CLEAR_SEQUENCE_TASK

Hash0x3841422E9C488D8C
Runtime nameClearSequenceTask
NamespaceTASK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x3841422E9C488D8C

Signature

void CLEAR_SEQUENCE_TASK(int* taskSequenceId);

Parameters

NameTypeDescription
taskSequenceIdint*—

Returns void

Usage

Lua
local taskSequenceId = ClearSequenceTask(taskSequenceId)

-- always works, by hash
local taskSequenceId = Citizen.InvokeNative(0x3841422E9C488D8C, Citizen.PointerValueIntInitialized(taskSequenceId))
JavaScript and C#
JavaScript
const taskSequenceId = ClearSequenceTask(taskSequenceId);

// by hash
const taskSequenceId = Citizen.invokeNative('0x3841422E9C488D8C', Citizen.pointerValueIntInitialized(taskSequenceId));
C#
var taskSequenceId = new OutputArgument();
Function.Call((Hash)0x3841422E9C488D8C, taskSequenceId);
// taskSequenceId.GetResult<int>()
  • The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result.

See also

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.