clearPedTasksImmediately
CLEAR_PED_TASKS_IMMEDIATELY0xAAA34F8A7CB32098The 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.
clearPedTasksImmediately(ped: Ped): voidclearPedTasksImmediately(ped: Ped)Usage
JavaScript
clearPedTasksImmediately(ped);Lua
clearPedTasksImmediately(ped)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
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