Vehicle spawned

Triggered after the spawn of a temporary vehicle

Event

AddEventHandler("jobs_creator:temporary_garage:vehicleSpawned", function(vehicle, vehicleName, vehiclePlate)

end)

Parameters

Example

AddEventHandler("jobs_creator:temporary_garage:vehicleSpawned", function(vehicle, vehicleName, vehiclePlate)

    -- Example to give keys to the vehicle (you may have a TriggerEvent to use, that's up to you)
    giveKeysToVehicle(vehicle)

    print(vehicleName) -- Example output 'adder'
end)

Last updated