client
ClearPedTasks
FiveM client native documentation with a Lua example.
Summary
Stops a ped's current tasks/animations, returning them to normal control. Used to cancel emotes and scripted actions.
Returns
void
Parameters
pednumberThe ped.Example
ClearPedTasks(PlayerPedId()) -- stop current anim/taskCommon pitfalls
- ClearPedTasksImmediately is the harsher version (instant, no blend).
- Calling it mid-important-task can interrupt things like being in a vehicle.
Related natives
Related guides
FiveM scripts done right
Optimized, dual-framework scripts for QBCore and ESX from Viper Development — escrow protected, delivered instantly to your Cfx portal.
Browse Scripts →