# Car Spawn

## INSTALLATION

### 1.  Resource Download

\
**To get started, you'll need to download your new resource previously purchased from** [**shop**](https://loureiro-stoned.gitbook.io/docs/overview/website-shop)**.** For that we must log in with our account at [`keymaster`](https://keymaster.fivem.net/asset-grants/) and look for the Asset grants section, there we will find our complete package.

{% hint style="info" %}
To get updates you get them from the same website ([keymaster](https://keymaster.fivem.net/asset-grants)).
{% endhint %}

### 2. Unzip The Folder

Unzip the script folder than **copy `stoned-carspawn`** and **paste** it on your server **resources folder**.

### 3. Ensure

Put this line in your server.cfg.

{% hint style="warning" %}
This should be under your essentials resources.
{% endhint %}

```
ensure stoned-carspawn
```

## CONFIGURATION

### 4. Access config/allveh.lua

Make sure you have the **list of all the vehicles** you want to be spawned.

### 5. Create Items

Taking into consideration the **vehicles** you want to be spawned via item requires you to **create** all of these **items** via `spawnName` in your **inventory**.

### 6. Configure

**Configure** the ***config.lua*** file present in the resource, with the help of comments to facilitate your configuration.

{% hint style="info" %}
**IMPORTANT!**\
Make sure you have your **progressbar** script **configured** here:
{% endhint %}

<figure><img src="https://3385301882-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ff6RtuIyKM7kJj3UumLC0%2Fuploads%2F9ri9M7V267YoOx5GWZL7%2Fimage.png?alt=media&#x26;token=0578e9aa-89b4-44d2-9696-177243edc9e9" alt=""><figcaption></figcaption></figure>

If not, it requires installation.

### 7. Restart Server

Restart your game server and enjoy the system.


---

# 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://loureiro-stoned.gitbook.io/docs/scripts-guides/car-spawn.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.
