# Addon Vehicles

## Vehicle Name

> First thing first, your addon vehicles names... Fivem doesn't know how your addon vehicles are named so we need to register them.

* Go to **vehicleshop/client/editable/names.lua** and add your addon vehicles in customNames table, make sure to put the correct spawn name (model).

<figure><img src="https://1688068901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9bCwnajAqpi3Viykb5Wi%2Fuploads%2FxE8zo5pauwvE7SHHN5FD%2Fimage.png?alt=media&#x26;token=e91bfbd5-a666-48d2-9920-737d54e9e817" alt=""><figcaption></figcaption></figure>

## Vehicle Thumbnail

> This step is optional, to generate the vehicle thumbnail you have 2 options:

**1) Use a greenscreen script that takes images**, an option can be this one: <https://github.com/Bentix-cs/fivem-greenscreener>

{% hint style="warning" %}
fivem-greenscreener is NOT my script, I don't give any support for it and if it gets removed from Github by its owner then GG, there's nothing I can do about it. **Read his own documentation.**
{% endhint %}

**2)** **Use images from Vecteezy (I use this option):**

* Get a Premium sub from <https://www.vecteezy.com/> (is like $5 USD)
* Search any vehicle you need a thumbnail (example a corvette) and download it:

<figure><img src="https://1688068901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9bCwnajAqpi3Viykb5Wi%2Fuploads%2FwbIbURTWilfnbq3ssAgq%2Fimage.png?alt=media&#x26;token=f84961a7-7e50-4ff4-9014-b67abb3df299" alt=""><figcaption><p>Make sure to search in the PNG category</p></figcaption></figure>

* Make sure to resize the image and change it format to webp so it can load fast (I use Photoshop).
* Host the image in [Fivemerr](https://fivemerr.com/) or [Fivemanage](https://fivemanage.com/).
* Link the vehicle image to your vehicle using the admin panel.

{% hint style="danger" %}
Don't use Discord or Imgur as image hosting, images will stop working and you will need to upload them again...
{% endhint %}

> If you're not sure which dimensions to use, most dimensions will work, but make sure the file size is small and the vehicle fills the entire frame. Here's an example:

```markdown
https://files.fivemerr.com/images/ab1a931c-03b5-4c92-81db-45607a7231fc.webp
```
