OnWaypointChange

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

This event is triggered when the player sets/removes a waypoint.

Dialog-warning.png Note: This feature is currently not in the API, or is currently not accurate on the wiki due to upcoming API changes. New API functions and changes will be released with the next update.

Syntax

In Javascript
Client-Side Function

API.onWaypointChange.connect((placed, position) => {

});
  • placed: parameter should be of bool type.
    • Indicates whether the player has set or removed the waypoint.
  • position: parameter should be of Vector3 type.
    • Contains the position of the set waypoint.

Usage example(s)

In Javascript
Client-Side Function

API.onWaypointChange.connect((placed, position) => {

});

References