getPosAlongGpsTypeRoute
GET_POS_ALONG_GPS_TYPE_ROUTE0xF3162836C28F9DA5The GTA V native GET_POS_ALONG_GPS_TYPE_ROUTE of the PATHFIND namespace, as LS:MP client scripts call it: the global function getPosAlongGpsTypeRoute, in JavaScript and in Lua.
getPosAlongGpsTypeRoute(p1: boolean, p2: number, p3: number): [
ok: boolean,
result: { x: number, y: number, z: number }
]getPosAlongGpsTypeRoute(
p1: boolean,
p2: number,
p3: integer
): boolean, Vector3Usage
JavaScript
const [ok, result] = getPosAlongGpsTypeRoute(p1, p2, p3);Lua
local ok, result = getPosAlongGpsTypeRoute(p1, p2, p3)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
p1 | BOOL | boolean | boolean |
p2 | float | number | number |
p3 | int | number | integer |
Returns
2 values, in this order: an array in JavaScript, multiple return values in Lua.
| # | Value | Type | JavaScript | Lua | Description |
|---|---|---|---|---|---|
| 1 | ok | BOOL | boolean | boolean | The native’s own return value. |
| 2 | result | Vector3 | { x: number, y: number, z: number } | Vector3 | output |
Notes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
p3 can be 0, 1 or 2.
Reference
- Namespace
- Pathfinding PATHFIND
- In the game
BOOL GET_POS_ALONG_GPS_TYPE_ROUTE(Vector3* result, BOOL p1, float p2, int p3)- Hash
0xF3162836C28F9DA5- Introduced
- Game build 505 legacy numbering
- Formerly
GET_GPS_WAYPOINT_ROUTE_END