The Lab
TASK native

TASK_GO_STRAIGHT_TO_COORD

returns void9 paramsbuild 1207

Tasks ped to walk in a straight line to (x, y, z) at moveBlendSpeedY, ending with finalHeading.

Signature

C
void TASK_GO_STRAIGHT_TO_COORD(Ped ped, float x, float y, float z, float moveBlendSpeedY, int timeBeforeTeleport, float finalHeading, float targetRadius, int p8); // 0xD76B57B44F1E6F8B b1207

Parameters

#NameType
1pedPed
2xfloat
3yfloat
4zfloat
5moveBlendSpeedYfloat
6timeBeforeTeleportint
7finalHeadingfloat
8targetRadiusfloat
9p8int

Facts

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

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