TasksClient

getScriptTaskStatus

GET_SCRIPT_TASK_STATUS0x77F1BEB8863288D5

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

SignatureJavaScript
getScriptTaskStatus(ped: Ped, taskHash: Hash): number
SignatureLua
getScriptTaskStatus(ped: Ped, taskHash: Hash): integer

Usage

JavaScript
const result = getScriptTaskStatus(ped, taskHash);
Lua
local result = getScriptTaskStatus(ped, taskHash)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
taskHashHashnumberinteger

Returns

int JavaScript number, Lua integer

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Gets the status of a script-assigned task.

Reference

Namespace
Tasks TASK
In the game
int GET_SCRIPT_TASK_STATUS(Ped ped, Hash taskHash)
Hash
0x77F1BEB8863288D5

Open in the interactive natives reference