TASK_GOTO_ENTITY_OFFSET_XY
Tasks ped to go to the horizontal offset (xOffset, yOffset) from entity.
Signature
void TASK_GOTO_ENTITY_OFFSET_XY(Ped ped, Entity entity, int duration, float targetRadius, float xOffset, float yOffset, float moveBlendRatio, int offsetFlags); // 0x338E7EF52B6095A9 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | entity | Entity |
| 3 | duration | int |
| 4 | targetRadius | float |
| 5 | xOffset | float |
| 6 | yOffset | float |
| 7 | moveBlendRatio | float |
| 8 | offsetFlags | int |
Facts
| 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.
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
)// 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
);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
);Related TASK natives
- TASK_GOTO_ENTITY_OFFSET_XY_AIMING
- TASK_GOTO_ENTITY_OFFSET_XYZ
- TASK_GOTO_ENTITY_OFFSET_XYZ_AIMING
- TASK_GOTO_ENTITY_OFFSET
- 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.