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