OnVehicleDestroyed: Difference between revisions

From Onset Developer Wiki
(Created page with "{{Info|Event|Server|1.2.2}} {{FuncDescription|Event called when a vehicle instance was destroyed through DestroyVehicle.}} {{FuncSyntax|OnVehicleDestroyed(vehicle)}} {{...")
 
(No difference)

Latest revision as of 20:36, 31 August 2020

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