The Lab
TASK native

TASK_GO_STRAIGHT_TO_COORD_RELATIVE_TO_ENTITY

returns void8 paramsbuild 1207

Tasks ped to walk in a straight line to the given offset from entity.

Signature

C
void TASK_GO_STRAIGHT_TO_COORD_RELATIVE_TO_ENTITY(Ped ped, Entity entity, float xOffset, float yOffset, float zOffset, int moveBlendRatio, int timeBeforeTeleport, int p7); // 0x61E360B7E040D12E b1207

Parameters

#NameType
1pedPed
2entityEntity
3xOffsetfloat
4yOffsetfloat
5zOffsetfloat
6moveBlendRatioint
7timeBeforeTeleportint
8p7int

Facts

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

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