diff --git a/TASK/TaskFollowPointRoute.md b/TASK/TaskFollowPointRoute.md index 6f1676037..58f64f84f 100644 --- a/TASK/TaskFollowPointRoute.md +++ b/TASK/TaskFollowPointRoute.md @@ -5,24 +5,33 @@ ns: TASK ```c // 0x595583281858626E 0xB837C816 -void TASK_FOLLOW_POINT_ROUTE(Ped ped, float speed, int unknown); +void TASK_FOLLOW_POINT_ROUTE(Ped ped, float speed, int routeMode); ``` -``` -MulleKD19: Makes the ped go on the created point route. -ped: The ped to give the task to. -speed: The speed to move at in m/s. -int: Unknown. Can be 0, 1, 2 or 3. -Example: -TASK_FLUSH_ROUTE(); -TASK_EXTEND_ROUTE(0f, 0f, 70f); -TASK_EXTEND_ROUTE(10f, 0f, 70f); -TASK_EXTEND_ROUTE(10f, 10f, 70f); -TASK_FOLLOW_POINT_ROUTE(GET_PLAYER_PED(), 1f, 0); +Makes the ped go on a point route. + +```c +enum eFollowPointRouteMode { + TICKET_SINGLE = 0, + TICKET_RETURN = 1, + TICKET_SEASON = 2, + TICKET_LOOP = 3 +} ``` +This native is often times used with [`TASK_FLUSH_ROUTE`](#_0x841142A1376E9006) and [`TASK_EXTEND_ROUTE`](#_0x1E7889778264843A) + + ## Parameters * **ped**: The ped to give the task to. * **speed**: The speed to move at in m/s. -* **unknown**: Unknown. Can be 0, 1, 2 or 3. +* **routeMode**: The route mode to use, refer to `eFollowPointRouteMode` +## Examples +```lua +TaskFlushRoute() +TaskExtendRoute(0.0, 0.0, 70.0) +TaskExtendRoute(10.0, 0.0, 70.0) +TaskExtendRoute(10.0, 10.0, 70.0) +TaskFollowPointRoute(PlayerPedId(), 1.0, 0) +```