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