getScriptTaskStatus
GET_SCRIPT_TASK_STATUS0x77F1BEB8863288D5The 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.
getScriptTaskStatus(ped: Ped, taskHash: Hash): numbergetScriptTaskStatus(ped: Ped, taskHash: Hash): integerUsage
JavaScript
const result = getScriptTaskStatus(ped, taskHash);Lua
local result = getScriptTaskStatus(ped, taskHash)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
taskHash | Hash | number | integer |
Returns
int JavaScript number, Lua integerNotes
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