PlayerLeaveVehicle

From RAGE Multiplayer Wiki
Revision as of 13:47, 29 November 2018 by Sake (talk | contribs)

Triggers when the player exits the vehicle

Server-Side
Event

 C#  JavaScript



JavaScript Syntax

Example

To do


Client-Side Event

 C#  JavaScript


C# Syntax

public delegate void OnPlayerLeaveVehicleDelegate();

Parameters

  • This event has no parameters

Example

The example below does nothing on invoke of event

Events.OnPlayerLeaveVehicle += OnPlayerLeaveVehicle();
public void OnPlayerLeaveVehicle()
{
    RAGE.Chat.Output("You exited a vehicle");
}


JavaScript Syntax

Example

This example outputs chat message, when player start leave from the car.

mp.events.add("playerLeaveVehicle", () => {
    mp.gui.chat.push("Player start leave the vehicle");
}


See Also

Checkpoint

Colshape

Entity

Player

Streaming

Vehicle

Waypoint