OnVehicleDestroyed

From Onset Developer Wiki
OnVehicleDestroyed

Type: Event
Context: Server
Introduced: v1.2.2

Description

Event called when a vehicle instance was destroyed through DestroyVehicle.

Syntax

OnVehicleDestroyed(vehicle)

Parameters

  • vehicle
    The vehicle which was destroyed.

Example

function OnVehicleDestroyed(vehicle)
    print("Vehicle "..vehicle.." was destroyed")
end
AddEvent("OnVehicleDestroyed", OnVehicleDestroyed)

See also