GetClosestRoad — FiveM Natives
0x132F52BBA570FE92 · PATHFIND · all
Finds an edge (node connection to another node) that satisfies the specified criteria.
Parameters
| Name | Type | Description |
|---|---|---|
| x | float | x position |
| y | float | y position |
| z | float | z position |
| minimumEdgeLength | float | Minimum distance the srcNode must be from the targetNode. |
| minimumLaneCount | int | Minimum number of lanes the connection must have. |
| srcNode | Vector3* | Position of the edge source |
| targetNode | Vector3* | Position of the edge target |
| laneCountForward | int* | Lane count forward |
| laneCountBackward | int* | Lane count backwards |
| width | float* | Width of gap in middle of road between forward and backward lanes. |
| onlyMajorRoads | BOOL | Return major roads only. |
Returns
bool