# Vehicles

<figure><img src="https://3006847189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MdBOa9OFjtdqw9FdXli%2Fuploads%2Fgit-blob-cbc49d8b3aff190093c9f39f2a1e2549516b7d84%2Fvehicles.png?alt=media" alt="" width="563"><figcaption><p>Sonoran CMS - QBCore Game Panel Promotional Image</p></figcaption></figure>

## Switch Between Live and DB Vehicles

You can switch to view only live vehicles active in the server, or all vehicles in the database at the top right.

<figure><img src="https://3006847189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MdBOa9OFjtdqw9FdXli%2Fuploads%2Fgit-blob-fd17999e42c275135c138573c1ee1371c579cca7%2Fimage.png?alt=media" alt="" width="375"><figcaption></figcaption></figure>

## Add a Vehicle

Selecting `Add Vehicle` at the top right allows you to create a new vehicle and assign it's ownership to a player.

<figure><img src="https://3006847189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MdBOa9OFjtdqw9FdXli%2Fuploads%2Fgit-blob-368269fea5f13e3121921e14ee362db60b2cbc52%2Fimage.png?alt=media" alt="" width="288"><figcaption></figcaption></figure>

## Manage a Vehicle

Select any vehicle to modify it's information, transfer ownership, repair it, or delete it from the server.

<figure><img src="https://3006847189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MdBOa9OFjtdqw9FdXli%2Fuploads%2Fgit-blob-1f433d54e5f54d44cdc1edd0787fac1a70ff3d2b%2Fimage.png?alt=media" alt="" width="286"><figcaption></figcaption></figure>

## Supported Garage Scripts

Currently, Sonoran CMS supports the following QB Core garage scripts:

* QB (Base) Garages
* Codesign Garage
* Quasar Advanced Garages
* JG Advanced Garages
* AK47 QG Garage

You can suggest more integrations on our [support portal](https://support.sonoransoftware.com) or if you would like to add the support yourself, simply paste this code snippet in any **SERVER-sided** file in your garage resource.

```lua
local function getAllGarages()
    local garages = {}
    for k, v in pairs(Config.Garages) do
        garages[#garages+1] = {
            name = k,
            label = v.label,
            type = v.type,
            takeVehicle = v.takeVehicle,
            putVehicle = v.putVehicle,
            spawnPoint = v.spawnPoint,
            showBlip = v.showBlip,
            blipName = v.blipName,
            blipNumber = v.blipNumber,
            blipColor = v.blipColor,
            vehicle = v.vehicle
        }
    end
    return garages
end
exports('getAllGarages', getAllGarages)
```
