TASK_GOTO_ENTITY_OFFSET
Tasks ped to go to the given offset from entity for up to duration.
Signature
void TASK_GOTO_ENTITY_OFFSET(Ped ped, Entity entity, Any p2, float x, float y, float z, int duration); // 0xE39B4FF4FDEBDE27 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | entity | Entity |
| 3 | p2 | Any |
| 4 | x | float |
| 5 | y | float |
| 6 | z | float |
| 7 | duration | int |
Facts
| 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.
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
)// 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
);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
);Related TASK natives
- TASK_GOTO_ENTITY_OFFSET_XY
- TASK_GOTO_ENTITY_OFFSET_XY_AIMING
- TASK_GOTO_ENTITY_OFFSET_XYZ
- TASK_GOTO_ENTITY_OFFSET_XYZ_AIMING
- TASK_GOTO_ENTITY_AIMING
- TASK_GO_TO_ENTITY_WHILE_AIMING_AT_ENTITY
- TASK_GO_TO_ENTITY_WHILE_AIMING_AT_ENTITY_USING_COMBAT_STYLE
- TASK_FOLLOW_ENTITY_ALONG_WAYPOINT_RECORDING_AT_OFFSET
- TASK_FOLLOW_ENTITY_WHILE_AIMING_AT_ENTITY
- TASK_FOLLOW_TO_OFFSET_OF_ENTITY
- TASK_GO_STRAIGHT_TO_COORD_RELATIVE_TO_ENTITY
- TASK_GO_TO_COORD_WHILE_AIMING_AT_ENTITY
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.