OnVehicleWindowSmash
This event is triggered when a vehicle's window gets smashed.
C# Syntax
[ServerEvent(Event.VehicleWindowSmash)]
Parameters
- vehicle: parameter input should be in Vehicle type
- windowIndex: parameter input should be in int type
Example
[ServerEvent(Event.VehicleWindowSmash)]
public void OnVehicleWindowSmash(Vehicle vehicle, int windowIndex)
{
NAPI.Util.ConsoleOutput($"{vehicle.DisplayName} - {windowIndex}");
}