TasksClient

clearPedTasks

CLEAR_PED_TASKS0xE1EF3C1216AFF2CD

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

SignatureJavaScript
clearPedTasks(ped: Ped): void
SignatureLua
clearPedTasks(ped: Ped)

Usage

JavaScript
clearPedTasks(ped);
Lua
clearPedTasks(ped)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Tasks TASK
In the game
void CLEAR_PED_TASKS(Ped ped)
Hash
0xE1EF3C1216AFF2CD

Open in the interactive natives reference