PlayerCreateWaypoint

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

Client-Side Event

C.png C# Js.png JavaScript


Triggered when a player creates a waypoint on the map.


C# Syntax
C.png

public delegate void OnPlayerCreateWaypointDelegate(Vector3 position);

Parameters

  • position: Position of created waypoint.

Example

The example below shows up a message for a player when waypoint is set and sends the coordinates.

RAGE.Events.OnPlayerCreateWaypoint += OnWaypointCreated;
public void OnWaypointCreated(Vector3 position)
{
    RAGE.Chat.Output($"You have just created a waypoint with coords: {position}");
}


JavaScript Syntax
Jslogo.png

Parameters

  • position: Vector3

Examples

Client-Side
mp.events.add("playerCreateWaypoint", (position) => {
    mp.console.logInfo(`New waypoint created at: ${position.x}, ${position.y}, ${position.z}`);
});


See Also

Browser

Checkpoints

Colshapes

Console

Common

Damage

Vehicles

Voice chat

Streaming

Graphics

Waypoint