CLEAR_PED_TASKS_IMMEDIATELY
Immediately stops the pedestrian from whatever it's doing.
Hash
0xAAA34F8A7CB32098Runtime name
ClearPedTasksImmediatelyNamespaceTASK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xAAA34F8A7CB32098Signature
void CLEAR_PED_TASKS_IMMEDIATELY(Ped ped, BOOL p1, BOOL resetCrouch);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
p1 | BOOL | — |
resetCrouch | BOOL | — |
Returns void
Description
Immediately stops the pedestrian from whatever it's doing. They stop fighting, animations, etc. they forget what they were doing.
resetCrouch TRUE = ped will stand up if crouching, FALSE = ped will remain crouching if crouched
Usage
ClearPedTasksImmediately(ped, p1, resetCrouch)
-- always works, by hash
Citizen.InvokeNative(0xAAA34F8A7CB32098, ped, p1, resetCrouch)JavaScript and C#
ClearPedTasksImmediately(ped, p1, resetCrouch);
// by hash
Citizen.invokeNative('0xAAA34F8A7CB32098', ped, p1, resetCrouch);Function.Call((Hash)0xAAA34F8A7CB32098, ped, p1, resetCrouch);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.