PlayerRemoveWaypoint

From RAGE Multiplayer Wiki
Revision as of 18:51, 18 February 2021 by Moguchiy (talk | contribs) (Created page with "{{ClientsideCsJsEvent}} Triggered when a player removes a waypoint from the map. {{CSharpContainer| <syntaxhighlight lang="c#"> public delegate void OnPlayerRemoveWaypointDel...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Client-Side Event

 C#  JavaScript


Triggered when a player removes a waypoint from the map.


C# Syntax

public delegate void OnPlayerRemoveWaypointDelegate();

Example

The example below shows up a message for a player when waypoint is removed.

RAGE.Events.OnPlayerRemoveWaypoint += OnWaypointRemoved;
public void OnWaypointRemoved()
{
    RAGE.Chat.Output($"You have just removed the waypoint");
}


JavaScript Syntax


Examples

Client-Side
mp.events.add("playerRemoveWaypoint", () => {
    mp.console.logInfo(`Waypoint removed`);
});


See Also

Browser

Checkpoints

Colshapes

Console

Common

Damage

Vehicles

Voice chat

Streaming

Graphics

Waypoint

Misc