The Lab
TASK native

TASK_GOTO_ENTITY_OFFSET_XY

returns void8 paramsbuild 1207

Tasks ped to go to the horizontal offset (xOffset, yOffset) from entity.

Signature

C
void TASK_GOTO_ENTITY_OFFSET_XY(Ped ped, Entity entity, int duration, float targetRadius, float xOffset, float yOffset, float moveBlendRatio, int offsetFlags); // 0x338E7EF52B6095A9 b1207

Parameters

#NameType
1pedPed
2entityEntity
3durationint
4targetRadiusfloat
5xOffsetfloat
6yOffsetfloat
7moveBlendRatiofloat
8offsetFlagsint

Facts

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

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