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

# Impound

> Impounding vehicles with a reason, fee and hold time, and releasing them at an impound lot

# Impound

Officers impound vehicles with a reason, a release fee and a hold time. The
vehicle is removed from the street and waits at an impound lot until its
owner pays the fee there.

## Impounding a vehicle

Officers are players with a job in `Config.Impound.Jobs` at or above its
minimum grade. Standing next to a vehicle, they use
[`/impound`](https://docs.roadshop.org/roadgarage/commands#impound) or the **Impound Vehicle** target
option.

![The impound form with lot, reason, release fee and hold time](https://mintcdn.com/roadshop/Kjb4cLT9F-ZzMKNz/images/roadgarage/impound-form.webp?fit=max\&auto=format\&n=Kjb4cLT9F-ZzMKNz\&q=85\&s=dd5bb9828482c8d06c189b57d5c6916b)

The form asks for:

| Field | Limits |
| - | - |
| **Lot** | An impound lot of the vehicle's kind |
| **Reason** | Up to 120 characters, shown to the owner |
| **Release fee** | Starts at `Config.Impound.DefaultFee`, up to `Config.Impound.MaxFee` |
| **Hold time** | From no hold up to `Config.Impound.MaxHours` hours |

After **Impound Vehicle** and the confirmation, the vehicle disappears from
the street and shows as **Impounded** in its owner's garages.

## Getting a vehicle back

The owner goes to the impound lot and talks to the attendant. The lot lists
every impounded vehicle of theirs with the reason, the officer and the fee.
Once the hold time has passed, the vehicle is **Ready for release**.

![Releasing a vehicle at the City Impound](https://mintcdn.com/roadshop/Kjb4cLT9F-ZzMKNz/images/roadgarage/impound-release.webp?fit=max\&auto=format\&n=Kjb4cLT9F-ZzMKNz\&q=85\&s=a55ce7fbad30d3c3f7ac4a07bf2e3b3b)

**Pay & Release** charges the fee, and the vehicle is waiting on the lot's
parking slot. Release fees go to the society in `Config.Impound.Society`
(`'police'` by default, `false` for nobody).

Officers can release a vehicle to its owner's garage for free, for example
after a wrongful impound.

The lot also lists the owner's **Missing** vehicles, which can be recovered
there for `Config.RecoveryFee`.

## Vehicles impounded by other scripts

Vehicles that another script impounded (for example qb-policejob, which sets
the vehicle's `state` to 2) also show up. Any lot of the vehicle's kind
releases them without a hold time, for the framework's depot price or, if there
is none, `Config.Impound.DefaultFee`.

## Impound lots

```lua config.lua theme={null}
Config.ImpoundLots = {
    city = {
        label = 'City Impound', kind = 'car', blip = true,
        coords = vector4(400.45, -1630.87, 29.29, 228.88),
        spawns = { vector4(407.2, -1645.58, 29.31, 228.28) },
    },
    -- airport (air), marina (boat)
}
```

A lot uses the same fields as a garage, see
[Adding a garage](https://docs.roadshop.org/roadgarage/configuration.md#adding-a-garage).

## From other scripts

Police and parking scripts can impound with the
[`ImpoundVehicle`](https://docs.roadshop.org/roadgarage/api/exports#impoundvehicle) export, and admins
with [`/garageadmin`](https://docs.roadshop.org/roadgarage/commands#garageadmin).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.