OnVehicleDeath

From GTA Network Wiki
Jump to: navigation, search

OnVehicleDeath
Server-Side Function

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

This type of event is used for handling code when a vehicle gets destroyed.

Attribute

[ServerEvent(Event.VehicleDeath)]

Required Parameters

  • Vehicle: the vehicle.

Usage example(s)

[ServerEvent(Event.VehicleDeath)]
public void OnVehicleDeath(Vehicle veh)
{
    // Some code
}

Changelog

Version Description
1.0 Release.

References