# Troubleshooting

<details>

<summary><strong>No such export StartVehicleCoding</strong></summary>

Ensure the Vehicle Coding resource is started and export name matches (`exports['cardecode']:StartVehicleCoding`).

</details>

<details>

<summary><strong>Garage full</strong></summary>

You reached `Config.MaxStolenVehicles` in `ukradena_vozila`.

</details>

<details>

<summary><strong>ESX nil/xPlayer nil</strong></summary>

Start order wrong; ensure `es_extended` is started before this resource.

</details>

<details>

<summary><strong>Owner names not shown</strong></summary>

`users` table must have `identifier, firstname, lastname` columns or adjust the query.

</details>

<details>

<summary><strong>No keys after return</strong></summary>

Set `Config.KeysGiveOnReturn = true` and have QS/Wasabi resource running (or use `none`).

</details>

<details>

<summary><strong>NPC unlock not saving</strong></summary>

Ensure table `automafija_npc` exists; the script inserts automatically on purchase.

</details>

<details>

<summary><strong>Vehicle price defaulting</strong></summary>

Add/adjust entry in `data/vehicle_prices.json` (use the lowercase model name), or use the `/setvehprice` command.

</details>
