TASK_GO_STRAIGHT_TO_COORD
Tasks ped to walk in a straight line to (x, y, z) at moveBlendSpeedY, ending with finalHeading.
Signature
void TASK_GO_STRAIGHT_TO_COORD(Ped ped, float x, float y, float z, float moveBlendSpeedY, int timeBeforeTeleport, float finalHeading, float targetRadius, int p8); // 0xD76B57B44F1E6F8B b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | x | float |
| 3 | y | float |
| 4 | z | float |
| 5 | moveBlendSpeedY | float |
| 6 | timeBeforeTeleport | int |
| 7 | finalHeading | float |
| 8 | targetRadius | float |
| 9 | p8 | int |
Facts
| Name | TASK_GO_STRAIGHT_TO_COORD |
|---|---|
| Hash | 0xD76B57B44F1E6F8B |
| 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(0xD76B57B44F1E6F8B, -- TASK_GO_STRAIGHT_TO_COORD
PlayerPedId(), -- Ped ped
0.0, -- float x
0.0, -- float y
0.0, -- float z
0.0, -- float moveBlendSpeedY
0, -- int timeBeforeTeleport
0.0, -- float finalHeading
0.0, -- float targetRadius
0 -- int p8
)// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0xD76B57B44F1E6F8B", // TASK_GO_STRAIGHT_TO_COORD
PlayerPedId(), // Ped ped
0.0, // float x
0.0, // float y
0.0, // float z
0.0, // float moveBlendSpeedY
0, // int timeBeforeTeleport
0.0, // float finalHeading
0.0, // float targetRadius
0 // int p8
);Function.Call((Hash)0xD76B57B44F1E6F8B, // TASK_GO_STRAIGHT_TO_COORD
API.PlayerPedId(), // Ped ped
0.0f, // float x
0.0f, // float y
0.0f, // float z
0.0f, // float moveBlendSpeedY
0, // int timeBeforeTeleport
0.0f, // float finalHeading
0.0f, // float targetRadius
0 // int p8
);Related TASK natives
- TASK_GO_STRAIGHT_TO_COORD_RELATIVE_TO_ENTITY
- 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_ANY_MEANS
- TASK_GO_TO_COORD_ANY_MEANS_EXTRA_PARAMS
- TASK_GO_TO_COORD_ANY_MEANS_EXTRA_PARAMS_WITH_CRUISE_SPEED
- TASK_GO_TO_COORD_WHILE_AIMING_AT_ENTITY
- TASK_GO_TO_COORD_WHILE_AIMING_AT_ENTITY_USING_COMBAT_STYLE
- _UPDATE_TASK_GO_TO_COORD_WITH_OFFSET
- TASK_GO_TO_ENTITY
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.