OnVehicleCreated

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