Skip to main content

Pathfind::getClosestMajorVehicleNode

Get the closest vehicle node to a given position, unknown1 = 3.0, unknown2 = 0

Syntax

```js mp.game.pathfind.getClosestMajorVehicleNode(x, y, z, outPosition, unknown1, unknown2); ```

Required Arguments

  • x: float
  • y: float
  • z: float
  • outPosition: Vector3
  • unknown1: float
  • unknown2: int

Return value

  • Vector3

Example

```js // todo ```

See also