On test drive vehicle spawn

This event is triggered after a vehicle of test drive is spawned on the client doing the test drive

Event

AddEventHandler("dealerships_creator:testDrive:vehicleSpawned", function(vehicle, vehicleNetId)

end)

Parameters

NameData TypeDescription

vehicle

integer

The vehicle handle

vehicleNetId

integer

The vehicle network ID

Example

EventHandler("dealerships_creator:testDrive:vehicleSpawned", function(vehicle, vehicleNetId)
    SetVehicleFuelLevel(vehicle, 100.0)
end)

Last updated