OnVehicleDestroyed
From Onset Developer Wiki
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)