OnVehicleWindowSmash

From GTA Network Wiki
Jump to: navigation, search

OnVehicleWindowSmash
Server-Side Function

utilities-terminal.png Server-Side csharp.png C#

This event is triggered when a vehicle window get smashed.

Attribute

[ServerEvent(Event.VehicleWindowSmash)]

Required Parameters

  • Vehicle: the vehicle.
  • int: index of the window.

Usage example(s)

[ServerEvent(Event.VehicleWindowSmash)]
public void OnVehicleWindowSmash(Vehicle vehicle, int windowIndex)
{
    // Some code
}

Changelog

Version Description
1.0 Release.

References