The Lab
TASK native

TASK_TURN_PED_TO_FACE_ENTITY

returns void6 paramsbuild 1207

Tasks ped to turn toward targetEntity, for up to duration milliseconds.

Signature

C
void TASK_TURN_PED_TO_FACE_ENTITY(Ped ped, Entity targetEntity, int duration, float p3, float p4, float p5); // 0x5AD23D40115353AC b1207

Parameters

#NameType
1pedPed
2targetEntityEntity
3durationint
4p3float
5p4float
6p5float

Facts

Facts about TASK_TURN_PED_TO_FACE_ENTITY
Name
TASK_TURN_PED_TO_FACE_ENTITY
Hash
0x5AD23D40115353AC
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(0x5AD23D40115353AC, -- TASK_TURN_PED_TO_FACE_ENTITY
  PlayerPedId(), -- Ped ped
  PlayerPedId(), -- Entity targetEntity
  0, -- int duration
  0.0, -- float p3
  0.0, -- float p4
  0.0 -- float p5
)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0x5AD23D40115353AC", // TASK_TURN_PED_TO_FACE_ENTITY
  PlayerPedId(), // Ped ped
  PlayerPedId(), // Entity targetEntity
  0, // int duration
  0.0, // float p3
  0.0, // float p4
  0.0 // float p5
);
C#
Function.Call((Hash)0x5AD23D40115353AC, // TASK_TURN_PED_TO_FACE_ENTITY
  API.PlayerPedId(), // Ped ped
  API.PlayerPedId(), // Entity targetEntity
  0, // int duration
  0.0f, // float p3
  0.0f, // float p4
  0.0f // float p5
);
All TASK natives

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