TasksClient

getIsTaskActive

GET_IS_TASK_ACTIVE0xB0760331C7AA4155

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

SignatureJavaScript
getIsTaskActive(ped: Ped, taskType: number): boolean
SignatureLua
getIsTaskActive(ped: Ped, taskType: integer): boolean

Usage

JavaScript
const result = getIsTaskActive(ped, taskType);
Lua
local result = getIsTaskActive(ped, taskType)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
taskTypeintnumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Tasks TASK
In the game
BOOL GET_IS_TASK_ACTIVE(Ped ped, int taskType)
Hash
0xB0760331C7AA4155

Open in the interactive natives reference