VehicleDeath
This event is triggered when a vehicle is exploded.
Server-Side Event
C# | JavaScript |
---|
C# Syntax
See OnVehicleDeath.
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()
});