> For the complete documentation index, see [llms.txt](https://documentation.rcore.cz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.rcore.cz/paid-resources/rcore_dealership/configuration/testdrive.md).

# Test Drive

Edit `rcore_dealership/configs/config.testdrive.lua` for how players test drive vehicles before buying.

## ⏱️ Timing and Return

| Option            | Default           | Description                                                           |
| ----------------- | ----------------- | --------------------------------------------------------------------- |
| `Time`            | `90s`             | How long a regular test drive lasts.                                  |
| `NPCModel`        | `s_m_y_dealer_01` | NPC model used for test drives when enabled.                          |
| `OvertimePercent` | `0.3`             | Grace period (fraction of the drive time) to return without penalty.  |
| `ReturnRadius`    | `5.0`             | How close to the dealership the vehicle must be to count as returned. |
| `ReturnSpeed`     | `2.0`             | Maximum speed for the return to complete.                             |

## 🧊 Cooldown

`Config.Dealership.TestDrive.Cooldown` limits how often a player can test drive.

| Option      | Default  | Description                              |
| ----------- | -------- | ---------------------------------------- |
| `MaxDrives` | `3`      | Drives allowed before a cooldown starts. |
| `Time`      | `10 min` | Cooldown duration.                       |

## 🚫 Penalty

`Config.Dealership.TestDrive.Penalty` punishes players who don't return on time.

| Option          | Default  | Description                                      |
| --------------- | -------- | ------------------------------------------------ |
| `MaxViolations` | `3`      | Violations allowed before a ban.                 |
| `BanTime`       | `30 min` | How long the player is banned from test driving. |
