> For the complete documentation index, see [llms.txt](https://documentation.jaksam-scripts.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.jaksam-scripts.com/jobs-creator/client/garage-owned/vehicle-spawned.md).

# Vehicle spawned

Triggered after the spawn of a vehicle from owned vehicles garage

## Event

```lua
AddEventHandler("jobs_creator:garage_owned:vehicleSpawned", function(vehicle, vehicleName, vehiclePlate)

end)
```

### Parameters

| Name           | Data Type      | Description          |
| -------------- | -------------- | -------------------- |
| `vehicle`      | vehicle handle | The vehicle's handle |
| `vehicleName`  | string         | The vehicle's name   |
| `vehiclePlate` | string         | Vehicle's plate      |

## Example

```lua
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)
```
