# Import missing vehicles from qbcore to rcore\_pdm

{% hint style="info" %}
This will work only on QBCore nowhere else!
{% endhint %}

This will get all your vehicles from qb-core and it will add them to your database so you don't have to manually add each vehicle.

How to add missing categories to the database?\
By performing the command below into server console **cant be called from client only server**

```
qbcorecreatecategoryDB
```

It will look for all missing categories in the database from shared.lua and create them be aware that default model for each vehicle category is police car so you will need to edit the preview car.

How to add missing vehicles from shared.lua to the database?\
By performing the command below into server console **cant be called from client only server**

```
qbcorecreatevehiclesDB
```

It will select and create all missing vehicles from QBCore shared.lua and create them in database and thats all we have to do here. Its really simple just run these two commands.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://documentation.rcore.cz/paid-resources/rcore_pdm/qbcore/import-missing-vehicles-from-qbcore-to-rcore-pdm.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
