RedM Natives

CLEAR_PED_TASKS_IMMEDIATELY

Immediately stops the pedestrian from whatever it's doing.

Hash0xAAA34F8A7CB32098
Runtime nameClearPedTasksImmediately
NamespaceTASK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xAAA34F8A7CB32098

Signature

void CLEAR_PED_TASKS_IMMEDIATELY(Ped ped, BOOL p1, BOOL resetCrouch);

Parameters

NameTypeDescription
pedPed—
p1BOOL—
resetCrouchBOOL—

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

Lua
ClearPedTasksImmediately(ped, p1, resetCrouch)

-- always works, by hash
Citizen.InvokeNative(0xAAA34F8A7CB32098, ped, p1, resetCrouch)
JavaScript and C#
JavaScript
ClearPedTasksImmediately(ped, p1, resetCrouch);

// by hash
Citizen.invokeNative('0xAAA34F8A7CB32098', ped, p1, resetCrouch);
C#
Function.Call((Hash)0xAAA34F8A7CB32098, ped, p1, resetCrouch);

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.