TasksClient

clearPedSecondaryTask

CLEAR_PED_SECONDARY_TASK0x176CECF6F920D707

The GTA V native CLEAR_PED_SECONDARY_TASK of the TASK namespace, as LS:MP client scripts call it: the global function clearPedSecondaryTask, in JavaScript and in Lua.

SignatureJavaScript
clearPedSecondaryTask(ped: Ped): void
SignatureLua
clearPedSecondaryTask(ped: Ped)

Usage

JavaScript
clearPedSecondaryTask(ped);
Lua
clearPedSecondaryTask(ped)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Tasks TASK
In the game
void CLEAR_PED_SECONDARY_TASK(Ped ped)
Hash
0x176CECF6F920D707

Open in the interactive natives reference