> For the complete documentation index, see [llms.txt](https://arctic-development.gitbook.io/arctic-development/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://arctic-development.gitbook.io/arctic-development/scripts/vehicle-spawner.md).

# Vehicle Spawner

The **Vehicle Spawner Script** for FiveM is the one-stop solution for Spawning Vehicles In-Game!

***

<figure><img src="/files/7zh66Nef7GwSoeKKYldi" alt=""><figcaption></figcaption></figure>

1. [Ox\_lib](https://github.com/overextended/ox_lib)

***

<figure><img src="/files/SpMscVNMZqsjkgvXax7q" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/q0MwQKJTmHHjmLxmVwUd" alt=""><figcaption><p>Fire/EMS Vehicles Preview</p></figcaption></figure>

<figure><img src="/files/VZ1XWSxdfNpuK3zi9Mff" alt=""><figcaption><p>Civ Vehicles Preview</p></figcaption></figure>

<figure><img src="/files/EorNVipx03PEaC3hryrs" alt=""><figcaption><p>LEO Vehicles Preview</p></figcaption></figure>

<figure><img src="/files/X2051cBTCEL3OqcSzync" alt=""><figcaption><p>DOT Vehicles Preview</p></figcaption></figure>

<figure><img src="/files/yaAR1D9zsUQzCloEp3mB" alt=""><figcaption><p>Command Preview</p></figcaption></figure>

***

{% hint style="info" %}
Want to add a new category?
{% endhint %}

```lua

-- Head to our Config.Categories, and add a new line with its name, example here
["My New Category"] = "My New Category",
-- Then add the category within the code as follows below.
Config.Categories = {
    ["CIV Vehicles"] = "CIV Vehicles",
    ["LEO Vehicles"] = "LEO Vehicles",
    ["DOT Vehicles"] = "DOT Vehicles",
    ["Fire/EMS Vehicles"] = "Fire/EMS Vehicles",
    ["My New Category"] = "My New Category"
}

-- Inorder for vehicles to be in the new cateogyr head to "Config.Vehicles" 
-- Then add a new array in the format.
    ["My New Category"] = {
      { label="Adder", spawncode="adder", image="https://cdn.discordapp.com/attachments/1104416442037379840/1104416470424894482/banshee.png" },
      { label="Banshee", spawncode="banshee", image="https://cdn.discordapp.com/attachments/1104416442037379840/1104416470424894482/banshee.png" },
      { label="Buffalo", spawncode="buffalo", image="https://cdn.discordapp.com/attachments/1104416442037379840/1104416470424894488/buffalo.png" },
    },
-- Then add it within our config as follows below.
Config.Vehicles = {
    ["CIV Vehicles"] = {
      { label="Adder", spawncode="adder", image="https://cdn.discordapp.com/attachments/1104416442037379840/1104416470424894482/banshee.png" },
      { label="Banshee", spawncode="banshee", image="https://cdn.discordapp.com/attachments/1104416442037379840/1104416470424894482/banshee.png" },
      { label="Buffalo", spawncode="buffalo", image="https://cdn.discordapp.com/attachments/1104416442037379840/1104416470424894488/buffalo.png" },
    },
    ["LEO Vehicles"] = {
      { label="Police Cruiser", spawncode="police", image="https://cdn.discordapp.com/attachments/1104416442037379840/1104416470424894482/banshee.png" },
      { label="Police Cruiser 2", spawncode="police2", image="https://cdn.discordapp.com/attachments/1104416442037379840/1104416470424894490/police2.png" },
      { label="Police Cruiser 3", spawncode="police3", image="https://cdn.discordapp.com/attachments/1104416442037379840/1104416470424894492/police3.png" },
    },
    ["DOT Vehicles"] = {
      { label="Flatbed", spawncode="flatbed", image="https://cdn.discordapp.com/attachments/1104416442037379840/1104416470424894482/banshee.png" },
      { label="Tow Truck", spawncode="towtruck", image="https://cdn.discordapp.com/attachments/1104416442037379840/1104416470424894484/towtruck.png" },
      { label="Tow Truck 2", spawncode="towtruck2", image="https://cdn.discordapp.com/attachments/1104416442037379840/1104416470424894486/towtruck2.png" },
    },
    ["Fire/EMS Vehicles"] = {
      { label="Fire Truck", spawncode="firetruk", image="https://cdn.discordapp.com/attachments/1104416442037379840/1104416470424894494/firetruk.png" },
      { label="Ambulance", spawncode="ambulance", image="https://cdn.discordapp.com/attachments/1104416442037379840/1104416470424894496/ambulance.png" },
    },
     ["My New Category"] = {
      { label="Adder", spawncode="adder", image="https://cdn.discordapp.com/attachments/1104416442037379840/1104416470424894482/banshee.png" },
      { label="Banshee", spawncode="banshee", image="https://cdn.discordapp.com/attachments/1104416442037379840/1104416470424894482/banshee.png" },
      { label="Buffalo", spawncode="buffalo", image="https://cdn.discordapp.com/attachments/1104416442037379840/1104416470424894488/buffalo.png" },
    }
}
```

***

```lua
Config = {}
-----------------------------------------------------------------------------------------------------
-- Developer Config
-----------------------------------------------------------------------------------------------------
Config.Debug = false -- Enable debug prints
-----------------------------------------------------------------------------------------------------
-- Menu Config
-----------------------------------------------------------------------------------------------------
Config.Keybind = "F6" -- Keybind to open the menu
Config.Command = "spawner" -- Command to open the menu
Config.MenuTheme = "purple" -- Menu theme (purple, red, orange, yellow, green)
-----------------------------------------------------------------------------------------------------
-- Category Config
-----------------------------------------------------------------------------------------------------
Config.Categories = {
    ["CIV Vehicles"] = "CIV Vehicles",
    ["LEO Vehicles"] = "LEO Vehicles",
    ["DOT Vehicles"] = "DOT Vehicles",
    ["Fire/EMS Vehicles"] = "Fire/EMS Vehicles"
}
-----------------------------------------------------------------------------------------------------
-- Vehicle Config
-----------------------------------------------------------------------------------------------------
Config.Vehicles = {
    ["CIV Vehicles"] = {
      { label="Adder", spawncode="adder", image="https://cdn.discordapp.com/attachments/1104416442037379840/1104416470424894482/banshee.png" },
      { label="Banshee", spawncode="banshee", image="https://cdn.discordapp.com/attachments/1104416442037379840/1104416470424894482/banshee.png" },
      { label="Buffalo", spawncode="buffalo", image="https://cdn.discordapp.com/attachments/1104416442037379840/1104416470424894488/buffalo.png" },
    },
    ["LEO Vehicles"] = {
      { label="Police Cruiser", spawncode="police", image="https://cdn.discordapp.com/attachments/1104416442037379840/1104416470424894482/banshee.png" },
      { label="Police Cruiser 2", spawncode="police2", image="https://cdn.discordapp.com/attachments/1104416442037379840/1104416470424894490/police2.png" },
      { label="Police Cruiser 3", spawncode="police3", image="https://cdn.discordapp.com/attachments/1104416442037379840/1104416470424894492/police3.png" },
    },
    ["DOT Vehicles"] = {
      { label="Flatbed", spawncode="flatbed", image="https://cdn.discordapp.com/attachments/1104416442037379840/1104416470424894482/banshee.png" },
      { label="Tow Truck", spawncode="towtruck", image="https://cdn.discordapp.com/attachments/1104416442037379840/1104416470424894484/towtruck.png" },
      { label="Tow Truck 2", spawncode="towtruck2", image="https://cdn.discordapp.com/attachments/1104416442037379840/1104416470424894486/towtruck2.png" },
    },
    ["Fire/EMS Vehicles"] = {
      { label="Fire Truck", spawncode="firetruk", image="https://cdn.discordapp.com/attachments/1104416442037379840/1104416470424894494/firetruk.png" },
      { label="Ambulance", spawncode="ambulance", image="https://cdn.discordapp.com/attachments/1104416442037379840/1104416470424894496/ambulance.png" },
    }
}
```

{% hint style="success" %}
Downloads

\[PAID | Open Source] [Official Store Link](https://arcticdevlabs.com/package/script?script=Vehicle-Spawner)
{% endhint %}
