# 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="/files/wGB8bc3hEgshbrRUzNqj" 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="/files/R57EddU2MxE1cHnfG8FY" 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
```


---

# 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://docs.av-scripts.com/guides/vehicleshop/addon-vehicles.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.
