OnVehicleDeath
This event is triggered when a vehicle has been destroyed.
C# Syntax
[ServerEvent(Event.VehicleDeath)]
Parameters
- vehicle: parameter input should be in Vehicle type
Example
[ServerEvent(Event.VehicleDeath)]
public void OnVehicleDeath(Vehicle vehicle)
{
NAPI.Util.ConsoleOutput($"{vehicle.DisplayName} ({vehicle.Handle}) was destroyed.");
}