TasksClient

clearDefaultPrimaryTask

CLEAR_DEFAULT_PRIMARY_TASK0x6100B3CEFD43452E

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

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

Usage

JavaScript
clearDefaultPrimaryTask(ped);
Lua
clearDefaultPrimaryTask(ped)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Tasks TASK
In the game
void CLEAR_DEFAULT_PRIMARY_TASK(Ped ped)
Hash
0x6100B3CEFD43452E
Introduced
Game build 2189 legacy numbering

Open in the interactive natives reference