> ## Documentation Index
> Fetch the complete documentation index at: https://docs.jaksam-scripts.com/llms.txt
> Use this file to discover all available pages before exploring further.

# On test drive vehicle spawn

> Triggered client side after a test drive vehicle is spawned.

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

```lua Event theme={null}
AddEventHandler("dealerships_creator:testDrive:vehicleSpawned", function(vehicle, vehicleNetId, plate)

end)
```

### Parameters

| Name           | Data Type | Description            |
| -------------- | --------- | ---------------------- |
| `vehicle`      | integer   | The vehicle handle     |
| `vehicleNetId` | integer   | The vehicle network ID |
| `plate`        | string    | The vehicle's plate    |

## Example

```lua theme={null}
AddEventHandler("dealerships_creator:testDrive:vehicleSpawned", function(vehicle, vehicleNetId, plate)
    SetVehicleFuelLevel(vehicle, 100.0)

    -- You may want to give vehicle keys somehow
end)
```


## Related topics

- [Client](/dealerships-creator/client/index.md)
- [Get is player doing test drive](/dealerships-creator/client/showroom/get-is-player-doing-test-drive.md)
- [Showroom](/dealerships-creator/client/showroom/index.md)
- [On entity spawn](/missions-creator/client/on-entity-spawn.md)
- [Vehicle spawned](/jobs-creator/client/buyable-vehicles/vehicle-spawned.md)
