CLEAR_PED_TASKS_IMMEDIATELY
Immediately stops the pedestrian from whatever it's doing.
Signature
void CLEAR_PED_TASKS_IMMEDIATELY(Ped ped);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | Ped id. |
Returns void
Description
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
ClearPedTasksImmediately(ped)
-- always works, by hash
Citizen.InvokeNative(0xbc045625, ped)JavaScript and C#
ClearPedTasksImmediately(ped);
// by hash
Citizen.invokeNative('0xbc045625', ped);Function.Call((Hash)0xbc045625, ped);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.