TasksClient

clearPedTasksImmediately

CLEAR_PED_TASKS_IMMEDIATELY0xAAA34F8A7CB32098

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

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

Usage

JavaScript
clearPedTasksImmediately(ped);
Lua
clearPedTasksImmediately(ped)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Immediately stops the pedestrian from whatever it's doing. They stop fighting, animations, etc. they forget what they were doing.

Reference

Namespace
Tasks TASK
In the game
void CLEAR_PED_TASKS_IMMEDIATELY(Ped ped)
Hash
0xAAA34F8A7CB32098

Open in the interactive natives reference