OnVehicleWindowSmash
Внешний вид
This event is triggered when a vehicle's window gets smashed.
<syntaxhighlight lang="csharp"> [ServerEvent(Event.VehicleWindowSmash)] </syntaxhighlight>
Parameters
- vehicle: parameter input should be in Vehicle type
- windowIndex: parameter input should be in int type
Example
<syntaxhighlight lang="csharp"> [ServerEvent(Event.VehicleWindowSmash)] public void OnVehicleWindowSmash(Vehicle vehicle, int windowIndex) { NAPI.Util.ConsoleOutput($"{vehicle.DisplayName} - {windowIndex}"); } </syntaxhighlight>