RedM Natives

GET_IS_TASK_ACTIVE

Hash0xB0760331C7AA4155
Runtime nameGetIsTaskActive
NamespaceTASK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xB0760331C7AA4155

Signature

BOOL GET_IS_TASK_ACTIVE(Ped ped, int taskIndex);

Parameters

NameTypeDescription
pedPed—
taskIndexint—

Returns BOOL

Usage

Lua
local retval = GetIsTaskActive(ped, taskIndex)

-- always works, by hash
local retval = Citizen.InvokeNative(0xB0760331C7AA4155, ped, taskIndex, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = GetIsTaskActive(ped, taskIndex);

// by hash
const retval = Citizen.invokeNative('0xB0760331C7AA4155', ped, taskIndex, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0xB0760331C7AA4155, ped, taskIndex);

Enums and flags

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.