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