OnVehicleDoorBreak
This event is triggered when a vehicle's door breaks.
C# Syntax
[ServerEvent(Event.VehicleDoorBreak)]
Parameters
- vehicle: parameter input should be in Vehicle type
- doorIndex: parameter input should be in int type
Example
[ServerEvent(Event.VehicleDoorBreak)]
public void OnVehicleDoorBreak(Vehicle vehicle, int doorIndex)
{
NAPI.Util.ConsoleOutput($"{vehicle.DisplayName} - {doorIndex}");
}