VehicleDeath

From RAGE Multiplayer Wiki

This event is triggered when a vehicle is exploded.

Server-Side
Event

 C#  JavaScript




C# Syntax


JavaScript Syntax

Parameters

  • vehicle: Vehicle - vehicle, that is exploded

Example

This example will destroy vehicles, which are exploded

mp.events.add("vehicleDeath", (vehicle) => {
    vehicle.destroy()
});


See also