GET_PED_SCRIPT_TASK_COMMAND
Gets the script task command currently assigned to the ped.
Signature
Hash GET_PED_SCRIPT_TASK_COMMAND(Ped ped);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | The target ped. |
Returns Hash — The script task command currently assigned to the ped. A value of 0x811E343C denotes no script task is assigned.
Description
Gets the script task command currently assigned to the ped.
Usage
local retval = GetPedScriptTaskCommand(ped)
-- always works, by hash
local retval = Citizen.InvokeNative(0x84fe084, ped, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetPedScriptTaskCommand(ped);
// by hash
const retval = Citizen.invokeNative('0x84fe084', ped, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x84fe084, ped);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.