TASK_FOLLOW_NAV_MESH_TO_COORD
Tasks ped to walk to (x, y, z) using the navmesh, at speedMultiplier, stopping within stoppingRange and facing heading.
Signature
void TASK_FOLLOW_NAV_MESH_TO_COORD(Ped ped, float x, float y, float z, float speedMultiplier, int timeout, float stoppingRange, int flags, float heading); // 0x15D3A79D4E44B913 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | x | float |
| 3 | y | float |
| 4 | z | float |
| 5 | speedMultiplier | float |
| 6 | timeout | int |
| 7 | stoppingRange | float |
| 8 | flags | int |
| 9 | heading | float |
Facts
| Name | TASK_FOLLOW_NAV_MESH_TO_COORD |
|---|---|
| Hash | 0x15D3A79D4E44B913 |
| 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(0x15D3A79D4E44B913, -- TASK_FOLLOW_NAV_MESH_TO_COORD
PlayerPedId(), -- Ped ped
0.0, -- float x
0.0, -- float y
0.0, -- float z
0.0, -- float speedMultiplier
0, -- int timeout
0.0, -- float stoppingRange
0, -- int flags
0.0 -- float heading
)// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0x15D3A79D4E44B913", // TASK_FOLLOW_NAV_MESH_TO_COORD
PlayerPedId(), // Ped ped
0.0, // float x
0.0, // float y
0.0, // float z
0.0, // float speedMultiplier
0, // int timeout
0.0, // float stoppingRange
0, // int flags
0.0 // float heading
);Function.Call((Hash)0x15D3A79D4E44B913, // TASK_FOLLOW_NAV_MESH_TO_COORD
API.PlayerPedId(), // Ped ped
0.0f, // float x
0.0f, // float y
0.0f, // float z
0.0f, // float speedMultiplier
0, // int timeout
0.0f, // float stoppingRange
0, // int flags
0.0f // float heading
);Related TASK natives
- TASK_FOLLOW_NAV_MESH_TO_COORD_ADVANCED
- TASK_FOLLOW_PAVEMENT_TO_COORD
- TASK_FOLLOW_TO_OFFSET_OF_COORD
- 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_FOLLOW_TO_OFFSET_OF_ENTITY
- TASK_FLY_TO_COORD
- TASK_GO_STRAIGHT_TO_COORD
- TASK_GO_TO_COORD_ANY_MEANS
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.