> For the complete documentation index, see [llms.txt](https://master-mind-store.gitbook.io/dashboard/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://master-mind-store.gitbook.io/dashboard/paid-release/dealership/important-notes.md).

# Important Notes

Upon performing all the steps mentioned before, you can witness a folder `data` with all the vehicles informations same like `vehicles.lua` for qb-core.

Here You can go both way on adding new vehicles:<br>

1. You can add new vehicles directly to data folder in the mm\_dealership and vehicles.lua in QBCore

{% hint style="success" %}
If you do it this, way you dont have to modify any vehicles.lua dependent scripts. Just update new vehicles to both Dealership Script and QBCore
{% endhint %}

2. You can add new vehicles to mm\_dealership only.

{% hint style="warning" %}
If you follow this Process, then you need to add these sets of line for all the script which requires QBCore.Shared.Vehicles data, to update the vehicle list
{% endhint %}

Client Side Event to Update <mark style="color:orange;">QBCore.Shared.Vehicles</mark>&#x20;

{% code fullWidth="false" %}

```lua
RegisterNetEvent('Dealership:Client:UpdateVeh', function(data)
    QBCore.Shared.Vehicles = data
end)
```

{% endcode %}

Server Side Event to Update <mark style="color:orange;">QBCore.Shared.Vehicles</mark>&#x20;

{% code fullWidth="false" %}

```lua
RegisterNetEvent('Dealership:Server:UpdateVeh', function(data)
    QBCore.Shared.Vehicles = data
end)
```

{% endcode %}

> Events are used to update vehicles.lua for scripts which starts before mm\_dealership

Export to Update <mark style="color:orange;">QBCore.Shared.Vehicles</mark>&#x20;

{% code fullWidth="false" %}

```lua
local vehicles = exports.mm_dealership.GetVehicles()
QBCore.Shared.Vehicles = vehicles
```

{% endcode %}

> Exports are used to update vehicles.lua for scripts which starts after mm\_dealership
