OnVehicleDestroyed

From Onset Developer Wiki
Revision as of 20:36, 31 August 2020 by BlueMountains (talk | contribs) (Created page with "{{Info|Event|Server|1.2.2}} {{FuncDescription|Event called when a vehicle instance was destroyed through DestroyVehicle.}} {{FuncSyntax|OnVehicleDestroyed(vehicle)}} {{...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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