RedM Natives

_HAS_PED_DIRECTED_TASK_ACTIVE

Returns true if the given entity currently has an active directed task that is, a task with a specific external objective (coordinate, entity, vehicle, or combat target) Known to return true for: TaskGoToCoordAnyMeans(ped, ...) TaskGoToE…

Hash0x9FF5F9B24E870748
Runtime nameHasPedDirectedTaskActive
NamespaceTASK
SideClient
NameCommunity guess
Docs
Since build1207

Signature

Any _HAS_PED_DIRECTED_TASK_ACTIVE(Any p0);

Parameters

NameTypeDescription
p0Any—

Returns Any

Description

VORPCORE RDR3natives

Returns true if the given entity currently has an active directed task that is, a task with a specific external objective (coordinate, entity, vehicle, or combat target)
Known to return true for:
TaskGoToCoordAnyMeans(ped, ...)
TaskGoToEntity(ped, target, ...)
TaskCombatPed(ped, targetPed, ...)
TaskWarpPedIntoVehicle(ped, vehicle)

Usage

Lua
local retval = HasPedDirectedTaskActive(p0)

-- always works, by hash
local retval = Citizen.InvokeNative(0x9FF5F9B24E870748, p0, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = HasPedDirectedTaskActive(p0);

// by hash
const retval = Citizen.invokeNative('0x9FF5F9B24E870748', p0, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x9FF5F9B24E870748, p0);
  • The name is a community guess and may change. If the named call is missing in your client build, use InvokeNative with the hash — it always works.

Sources

alloc8or RDR3 NativeDB · VORPCORE RDR3natives

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