Vehicle spawned
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
Triggered after the spawn of a vehicle from owned vehicles garage
AddEventHandler("jobs_creator:garage_owned:vehicleSpawned", function(vehicle, vehicleName, vehiclePlate)
end)
vehicle
vehicle handle
The vehicle's handle
vehicleName
string
The vehicle's name
vehiclePlate
string
Vehicle's plate
AddEventHandler("jobs_creator:garage_owned: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)