getIsTaskActive
GET_IS_TASK_ACTIVE0xB0760331C7AA4155The 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.
getIsTaskActive(ped: Ped, taskType: number): booleangetIsTaskActive(ped: Ped, taskType: integer): booleanUsage
JavaScript
const result = getIsTaskActive(ped, taskType);Lua
local result = getIsTaskActive(ped, taskType)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
taskType | int | number | integer |
Returns
BOOL JavaScript boolean, Lua booleanReference
- Namespace
- Tasks TASK
- In the game
BOOL GET_IS_TASK_ACTIVE(Ped ped, int taskType)- Hash
0xB0760331C7AA4155