The Lab
TASK native

TASK_GOTO_ENTITY_OFFSET

returns void7 paramsbuild 1207

Tasks ped to go to the given offset from entity for up to duration.

Signature

C
void TASK_GOTO_ENTITY_OFFSET(Ped ped, Entity entity, Any p2, float x, float y, float z, int duration); // 0xE39B4FF4FDEBDE27 b1207

Parameters

#NameType
1pedPed
2entityEntity
3p2Any
4xfloat
5yfloat
6zfloat
7durationint

Facts

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

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