taskFollowPointRoute
TASK_FOLLOW_POINT_ROUTE0x595583281858626EThe GTA V native TASK_FOLLOW_POINT_ROUTE of the TASK namespace, as LS:MP client scripts call it: the global function taskFollowPointRoute, in JavaScript and in Lua.
taskFollowPointRoute(ped: Ped, speed: number, mode: number): voidtaskFollowPointRoute(ped: Ped, speed: number, mode: integer)Usage
JavaScript
taskFollowPointRoute(ped, speed, mode);Lua
taskFollowPointRoute(ped, speed, mode)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
speed | float | number | number |
mode | int | number | integer |
Returns
Nothing. In JavaScript the call evaluates to undefined.
Notes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
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:
taskFlushRoute();
taskExtendRoute(0f, 0f, 70f);
taskExtendRoute(10f, 0f, 70f);
taskExtendRoute(10f, 10f, 70f);
taskFollowPointRoute(getPlayerPed(), 1f, 0);Reference
- Namespace
- Tasks TASK
- In the game
void TASK_FOLLOW_POINT_ROUTE(Ped ped, float speed, int mode)- Hash
0x595583281858626E