PlayerLeaveVehicle

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

Triggers when the player exits the vehicle.

Client-Side Event

C.png C# Js.png JavaScript



C# Syntax
C.png

public delegate void OnPlayerLeaveVehicleDelegate();

Parameters

This event has no parameters

Example

The example below send a chat message to the player when they exit a vehicle.

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


JavaScript Syntax
Jslogo.png

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