RedM Natives

TASK_GO_TO_ENTITY_WHILE_AIMING_AT_ENTITY

If true, peds will shoot at Entity till it is dead.

Hash0x97465886D35210E9
Runtime nameTaskGoToEntityWhileAimingAtEntity
NamespaceTASK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x97465886D35210E9

Signature

void TASK_GO_TO_ENTITY_WHILE_AIMING_AT_ENTITY(Ped ped, Any p1, Any p2, Any p3, Any p4, Any p5, Any p6, Any p7, Any p8, Any p9, Any p10);

Parameters

NameTypeDescription
pedPed—
p1Any—
p2Any—
p3Any—
p4Any—
p5Any—
p6Any—
p7Any—
p8Any—
p9Any—
p10Any—

Returns void

Description

shootatEntity:
If true, peds will shoot at Entity till it is dead.
If false, peds will just walk till they reach the entity and will cease shooting.

Usage

Lua
TaskGoToEntityWhileAimingAtEntity(ped, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10)

-- always works, by hash
Citizen.InvokeNative(0x97465886D35210E9, ped, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10)
JavaScript and C#
JavaScript
TaskGoToEntityWhileAimingAtEntity(ped, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10);

// by hash
Citizen.invokeNative('0x97465886D35210E9', ped, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10);
C#
Function.Call((Hash)0x97465886D35210E9, ped, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10);

Sources

alloc8or RDR3 NativeDB

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