TASK_GO_STRAIGHT_TO_COORD_RELATIVE_TO_ENTITY
Tasks ped to walk in a straight line to the given offset from entity.
Signature
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 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | entity | Entity |
| 3 | xOffset | float |
| 4 | yOffset | float |
| 5 | zOffset | float |
| 6 | moveBlendRatio | int |
| 7 | timeBeforeTeleport | int |
| 8 | p7 | int |
Facts
| 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.
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
)// 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
);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
);Related TASK natives
- TASK_GO_STRAIGHT_TO_COORD
- TASK_GO_TO_COORD_AND_AIM_AT_HATED_ENTITIES_NEAR_COORD
- TASK_GO_TO_COORD_AND_AIM_AT_HATED_ENTITIES_NEAR_COORD_USING_COMBAT_STYLE
- TASK_GO_TO_COORD_WHILE_AIMING_AT_COORD
- TASK_GO_TO_COORD_WHILE_AIMING_AT_COORD_USING_COMBAT_STYLE
- TASK_GO_TO_COORD_WHILE_AIMING_AT_ENTITY
- TASK_GO_TO_COORD_WHILE_AIMING_AT_ENTITY_USING_COMBAT_STYLE
- TASK_GO_TO_ENTITY_WHILE_AIMING_AT_ENTITY
- TASK_GO_TO_ENTITY_WHILE_AIMING_AT_ENTITY_USING_COMBAT_STYLE
- TASK_GO_TO_COORD_ANY_MEANS
- TASK_GO_TO_COORD_ANY_MEANS_EXTRA_PARAMS
- TASK_GO_TO_COORD_ANY_MEANS_EXTRA_PARAMS_WITH_CRUISE_SPEED
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.