TasksClient

taskPerformSequence

TASK_PERFORM_SEQUENCE0x5ABA3986D90D8A3B

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

SignatureJavaScript
taskPerformSequence(ped: Ped, taskSequenceId: number): void
SignatureLua
taskPerformSequence(ped: Ped, taskSequenceId: integer)

Usage

JavaScript
taskPerformSequence(ped, taskSequenceId);
Lua
taskPerformSequence(ped, taskSequenceId)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
taskSequenceIdintnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Tasks TASK
In the game
void TASK_PERFORM_SEQUENCE(Ped ped, int taskSequenceId)
Hash
0x5ABA3986D90D8A3B

Open in the interactive natives reference