OnPlayerExitVehicle

From RAGE Multiplayer Wiki

This event is triggered when a player exits a vehicle.


C# Syntax

[ServerEvent(Event.PlayerExitVehicle)]

Parameters

  • player: parameter input should be in Player type
  • vehicle: parameter input should be in Vehicle type

Example

[ServerEvent(Event.PlayerExitVehicle)]
public void OnPlayerExitVehicle(Player player, Vehicle vehicle)
{
	player.SendChatMessage($"You have exited your {vehicle.DisplayName}.");
}