The Lab
TASK native

OPEN_SEQUENCE_TASK

returns void1 parambuild 1207

Starts recording a task sequence and writes its id to taskSequenceId.

Task natives called with ped 0 are recorded until CLOSE_SEQUENCE_TASK.

Signature

C
void OPEN_SEQUENCE_TASK(int* taskSequenceId); // 0xE8854A4326B9E12B b1207

Parameters

#NameType
1taskSequenceIdint* (out pointer)

Facts

Facts about OPEN_SEQUENCE_TASK
Name
OPEN_SEQUENCE_TASK
Hash
0xE8854A4326B9E12B
Namespace
Returns
void
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local taskSequenceId = Citizen.InvokeNative(0xE8854A4326B9E12B, -- OPEN_SEQUENCE_TASK
  Citizen.PointerValueInt() -- int* taskSequenceId
)
print(taskSequenceId)
JavaScript
const taskSequenceId = Citizen.invokeNative("0xE8854A4326B9E12B", // OPEN_SEQUENCE_TASK
  Citizen.pointerValueInt() // int* taskSequenceId
);
console.log(taskSequenceId)
C#
var taskSequenceIdArg = new OutputArgument();
Function.Call((Hash)0xE8854A4326B9E12B, // OPEN_SEQUENCE_TASK
  taskSequenceIdArg // int* taskSequenceId
);
int taskSequenceId = taskSequenceIdArg.GetResult<int>();
All TASK natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.