The Lab
TASK native

TASK_ACHIEVE_HEADING

returns void3 paramsbuild 1207

Tasks ped to turn to heading, giving up after timeout milliseconds.

Signature

C
void TASK_ACHIEVE_HEADING(Ped ped, float heading, int timeout); // 0x93B93A37987F1F3D b1207

Parameters

#NameType
1pedPed
2headingfloat
3timeoutint

Facts

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

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