> For the complete documentation index, see [llms.txt](https://docs.rainmad.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.rainmad.com/resources/watch-admin-menu/features/vehicles.md).

# Vehicles

The **Vehicles** tab of the menu and the **Vehicles** page of the web panel: spawn and fix cars, and manage every owned vehicle on the server.

## Your own car

| Button               | Does                                                                                      |
| -------------------- | ----------------------------------------------------------------------------------------- |
| Spawn                | A car by model name. You get the keys through your key script (`cfg.bridge.vehiclelock`). |
| Repair, Flip, Delete | The car you sit in.                                                                       |

## Owned vehicles

The **Owned vehicles** view lists every vehicle players own, with its garage state. Search by plate, owner name, character id or model, and filter All, Outside, In garage or Impounded. The web panel's player card also has a **Vehicle administration** block with the car that player sits in and the ones they own.

| Action             | Name                         | Lowest role      | What it changes                                                                                                                                      |
| ------------------ | ---------------------------- | ---------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
| Owned list         | `vehicles:list`              | moderator        | Nothing.                                                                                                                                             |
| Read mods          | `veh:mods`                   | moderator        | Nothing. A car out in the world shows its real mod names; one in a garage shows what is saved.                                                       |
| Edit mods          | `veh:mods.set`               | admin            | The car in the world and its saved row, only the slots you changed.                                                                                  |
| Wipe mods          | `veh:wipe`                   | admin            | Every mod back to stock; turbo, xenon, tyre smoke and neon off; tint cleared. Paint and extras stay.                                                 |
| Change plate       | `veh:plate.set`              | admin            | The saved row, the trunk and glovebox, and the car in the world. The owner gets keys for the new plate. Refused when another vehicle has that plate. |
| Transfer owner     | `veh:transfer`               | admin            | The owner. The new one can be online or offline (server id, any identifier, or character id).                                                        |
| Impound            | `veh:impound`                | moderator        | The garage state, with a fee and a note. The car leaves the world when `despawnOnImpound` is on.                                                     |
| Release            | `veh:release`                | moderator        | Back into a garage at no cost: the current one or one you pick.                                                                                      |
| Trunk and glovebox | `veh:trunk`, `veh:trunk.set` | moderator, admin | Read, take out, put in, empty.                                                                                                                       |
| Give keys          | `veh:keys.give`              | admin            | Keys to a car in the world, for any online player near enough to see it.                                                                             |
| Repair, delete     | `veh:repair`, `veh:delete`   | moderator        | A car out in the world, by plate or network id.                                                                                                      |

All of them are in the **Vehicle tools** category. Every change is in the staff log and goes to the `admin` webhook.

## Garages

`cfg.vehicles.garage = 'auto'` reads the garage state from the first one of these that runs:

| Script                   | Used for state                                                                                                                                  |
| ------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------- |
| jg-advancedgarages       | Its own columns on the vehicle table.                                                                                                           |
| qbx\_garages, qb-garages | `player_vehicles` state, garage and depot price. The release picker lists the garages.                                                          |
| none of these            | The framework's own table: Qbox and QBCore `player_vehicles`; ESX `owned_vehicles`, with impound only when esx\_garage's `pound` column exists. |

okokGarage and cd\_garage have no garage adapter yet. With either one the framework's table is used, which may not match what that script shows.

## Trunks and gloveboxes

| Inventory                                              | Supported                                                                |
| ------------------------------------------------------ | ------------------------------------------------------------------------ |
| ox\_inventory                                          | Yes, out in the world and in a garage.                                   |
| qb-inventory (1.x and 2.x), ps-inventory, lj-inventory | Yes. A qb-inventory 2.x trunk somebody has open is shown but not edited. |
| qs-inventory                                           | Yes.                                                                     |
| codem, core, tgiann, ak47, jaksam                      | Not yet. The Trunk and Glovebox views say so.                            |

## Configuration

```lua
cfg.vehicles = {
    garage = 'auto',          -- 'auto' | 'jg-advancedgarages' | 'qbx_garages' | 'qb-garages' | 'default'
    impoundFee = 0,           -- the fee the impound form starts with
    despawnOnImpound = true,  -- take an impounded car out of the world
    pageSize = 50,            -- rows per page, 10 to 200
}
```

## Good to know

* Mod names come from the game, so they only show for a car that is out in the world. A car in a garage lists its slots by number.
* Give keys and repair need the car to exist near that player.
* Vehicle cleanup is on the Server tab, see [The admin menu](https://docs.rainmad.com/resources/watch-admin-menu/features/the-admin-menu#server).

{% hint style="warning" %}
The jg-advancedgarages and qs-inventory support follows their published table layouts and has not been checked on a live server yet. If a state or a trunk looks wrong with one of them, send us the table layout (see [Troubleshooting](https://docs.rainmad.com/resources/watch-admin-menu/reference/troubleshooting-and-faq#reporting-a-problem)).
{% endhint %}

{% hint style="info" %}
**RedM:** this tab is **Horses and wagons**. Plates, mods, keys and impound do not exist there. See [Differences from FiveM](https://docs.rainmad.com/resources/watch-admin-menu/redm/differences-from-fivem#horses-and-wagons).
{% endhint %}
