PedClient

setPedKeepTask

SET_PED_KEEP_TASK0x971D38760FBC02EF

The GTA V native SET_PED_KEEP_TASK of the PED namespace, as LS:MP client scripts call it: the global function setPedKeepTask, in JavaScript and in Lua.

SignatureJavaScript
setPedKeepTask(ped: Ped, toggle: boolean): void
SignatureLua
setPedKeepTask(ped: Ped, toggle: boolean)

Usage

JavaScript
setPedKeepTask(ped, toggle);
Lua
setPedKeepTask(ped, toggle)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
toggleBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Ped PED
In the game
void SET_PED_KEEP_TASK(Ped ped, BOOL toggle)
Hash
0x971D38760FBC02EF

Open in the interactive natives reference