CLEAR_PED_TASKS
Clear a ped's tasks. Stop animations and other tasks created by scripts.
Signature
void CLEAR_PED_TASKS(Ped ped);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | Ped id. Use PlayerPedId() for your own character. |
Returns void
Description
Clear a ped's tasks. Stop animations and other tasks created by scripts.
This is the server-side RPC native equivalent of the client native CLEAR_PED_TASKS.
Usage
ClearPedTasks(ped)
-- always works, by hash
Citizen.InvokeNative(0xde3316ab, ped)JavaScript and C#
ClearPedTasks(ped);
// by hash
Citizen.invokeNative('0xde3316ab', ped);Function.Call((Hash)0xde3316ab, ped);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.