TasksClient

taskPerformSequenceLocally

TASK_PERFORM_SEQUENCE_LOCALLY0x8C33220C8D78CA0D

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

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

Usage

JavaScript
taskPerformSequenceLocally(ped, taskSequenceId);
Lua
taskPerformSequenceLocally(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_LOCALLY(Ped ped, int taskSequenceId)
Hash
0x8C33220C8D78CA0D
Introduced
Game build 944 legacy numbering

Open in the interactive natives reference