GetNextPositionOnStreet

From GT-MP
Jump to: navigation, search
GetNextPositionOnStreet
Client-Side Function
System-users.png Client-Side Javascript.png JavaScript


Returns the next safe position on a street from the specified position.

Syntax

API.getNextPositionOnStreet(Vector3 position, bool unoccupied = false);

Required Arguments

  • position: parameter input should be in Vector3 type.
  • unoccupied: parameter input should be in bool type. true if the returned position shouldn't be occupied by a vehicle, false otherwise.

NOTE: This function returns data in Vector3 type.

Usage example(s)

API.getNextPositionOnStreet(Vector3 position, bool unoccupied = false);

References