OnVehicleCreated

From Onset Developer Wiki
Revision as of 21:25, 6 October 2020 by BlueMountains (talk | contribs) (Created page with "{{Info|Event|Server|1.3.0}} {{FuncDescription|Event called when an vehicle instance was created through CreateVehicle.}} {{FuncSyntax|OnVehicleCreated(vehicle)}} {{Func...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
OnVehicleCreated

Type: Event
Context: Server
Introduced: v1.3.0

Description

Event called when an vehicle instance was created through CreateVehicle.

Syntax

OnVehicleCreated(vehicle)

Parameters

  • vehicle
    The vehicle which was created.

Example

function OnVehicleCreated(vehicle)
    print("Vehicle "..vehicle.." was created")
end
AddEvent("OnVehicleCreated", OnVehicleCreated)

See also