RedM Natives

CLEAR_PED_TASKS_IMMEDIATELY

Immediately stops the pedestrian from whatever it's doing.

Hash0xBC045625
Runtime nameClearPedTasksImmediately
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

void CLEAR_PED_TASKS_IMMEDIATELY(Ped ped);

Parameters

NameTypeDescription
pedPed

Ped id.

Returns void

Description

Cfx.re native reference

Immediately stops the pedestrian from whatever it's doing. The difference between this and CLEAR_PED_TASKS is that this one teleports the ped but does not change the position of the ped.

This is the server-side RPC native equivalent of the client native CLEAR_PED_TASKS_IMMEDIATELY.

Usage

Lua
ClearPedTasksImmediately(ped)

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

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

Sources

Cfx.re native reference

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