The Lab
TASK native

TASK_GOTO_ENTITY_AIMING

returns void4 paramsbuild 1207

Tasks ped to go to target, starting to aim within StartAimingDist and stopping at distanceToStopAt.

Signature

C
void TASK_GOTO_ENTITY_AIMING(Ped ped, Entity target, float distanceToStopAt, float StartAimingDist); // 0xA9DA48FAB8A76C12 b1207

Parameters

#NameType
1pedPed
2targetEntity
3distanceToStopAtfloat
4StartAimingDistfloat

Facts

Facts about TASK_GOTO_ENTITY_AIMING
Name
TASK_GOTO_ENTITY_AIMING
Hash
0xA9DA48FAB8A76C12
Namespace
Returns
void
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
Citizen.InvokeNative(0xA9DA48FAB8A76C12, -- TASK_GOTO_ENTITY_AIMING
  PlayerPedId(), -- Ped ped
  PlayerPedId(), -- Entity target
  0.0, -- float distanceToStopAt
  0.0 -- float StartAimingDist
)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0xA9DA48FAB8A76C12", // TASK_GOTO_ENTITY_AIMING
  PlayerPedId(), // Ped ped
  PlayerPedId(), // Entity target
  0.0, // float distanceToStopAt
  0.0 // float StartAimingDist
);
C#
Function.Call((Hash)0xA9DA48FAB8A76C12, // TASK_GOTO_ENTITY_AIMING
  API.PlayerPedId(), // Ped ped
  API.PlayerPedId(), // Entity target
  0.0f, // float distanceToStopAt
  0.0f // float StartAimingDist
);
All TASK natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.