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

# Impound

> The police impound flow, impound lots, and automatic impound of abandoned vehicles.

## Police impound

Officers stand next to a vehicle and run `/impound` (configurable in
`config/impound.lua`). A dialog lets them pick:

* **Lot** — which impound location the vehicle goes to
* **Reason** — free text, shown to the owner (filtered by the word filter)
* **Hold time** — from the configured `timeOptions` (default: immediately up
  to 7 days); the owner can't retrieve the vehicle before the timer expires
* **Fee** — what the owner pays on release
* **Retrievable** — untick to require police interaction for release (e.g.
  evidence vehicles)

```lua theme={null}
Nex.Config.Impound = {
  command = "impound",
  societyFund = "police",  -- fees are paid into this society (optional)
  timeOptions = { 0, 1, 4, 12, 24, 72, 168 }, -- hours
  maxFee = 50000,              -- hard fee cap, enforced server-side
  requireNearbyVehicle = true, -- officer must be near the vehicle
  nearbyDistance = 8.0,
}
```

Impound **locations** live in `config/impound-locations.lua` — restrict each
lot to the jobs that should operate it via its `job` field.

## Releasing vehicles

Owners open the impound lot like a garage, see the reason, fee and
availability time, and pay to release. Officers whitelisted for the lot get
extra actions: release without fee and **return to owner's garage**.

## Auto-impound

Vehicles left out in the world too long can be impounded automatically
(`config/features.lua`):

```lua theme={null}
autoImpound = {
  enabled = true,
  hoursOut = 72,            -- left out this long → impounded
  defaultLot = "Impound A",
  fee = 500,
  retrievable = true,
},
```

<Info>
  Left-out tracking uses the `left_out_at` column that the schema installer
  creates — auto-impound needs no extra setup.
</Info>

Set the `nex_garages_webhook_impound` convar to log impounds, releases and
returns to Discord.
