CLEAR_PED_TASKS
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](?\_0xE1EF3C1216AFF2CD).**
CFX
Signature
lua
ClearPedTasks(PlayerPedId())
-- returns voidParameters
| Name | Type | Description |
|---|---|---|
| Ped | Ped id. Use PlayerPedId() for your own character. |
Usage
lua
ClearPedTasks(PlayerPedId())Generated from the native name, hash, and parameter list. Add a real example.
Details
- Hash
- API set
- Source
- cfx
Source: cfx
