# Create Garages

{% hint style="info" %}
To you create a new garage ( public, job or gang ) you need do it trough the file `config.lua`
{% endhint %}

### Setup a public garage

* **name**: Name of the garage
* **coords**: Coordinates where the NPC will spawn and can be interacted with
* **spawn**: Multiple spawn points where the vehicle can be spawned
* **radius**: Interaction radius with the NPC
* **type**: Optional; can be "car," "sea," or "air"

```lua
public_garages = {
    {
        name = "Pillbox Hill",
        coords = vector3(216.28, -809.63, 30.73),
        spawn = { vector4(222.27, -807.32, 29.99, 249.51), vector4(223.19, -804.87, 29.99, 249.51), vector4(224.16, -802.29, 29.98, 249.51), vector4(225.13, -799.72, 29.98, 249.51), vector4(226.01, -797.38, 29.98, 249.51), vector4(227.15, -794.34, 29.99, 249.51), vector4(228.12, -791.77, 29.99, 249.51), vector4(229.0, -789.43, 30.0, 249.51), vector4(229.92, -786.97, 30.01, 249.51), vector4(230.67, -784.98, 30.02, 249.51) }, --  you can add multiple spawn locations into a table
        radius = 15.0,
        type = "car",
    },
    {
        name = "Davis Mega Mall",
        coords = vector3(14.66, -1728.52, 29.3),
        spawn = { vector4(23.93, -1722.9, 29.3, 310.58) },
        radius = 15,
        type = "car",
    },
    {
        name = "Boats",
        coords = vector3(-795.15, -1510.79, 1.6),
        spawn = { vector4(-798.66, -1507.73, -0.47, 102.23) },
        radius = 20.0,
        type = "sea",
    },
    {
        name = "Hangar",
        coords = vector3(-1243.49, -3391.88, 13.94),
        spawn = { vector4(-1258.4, -3394.56, 13.94, 328.23) },
        radius = 20.0,
        type = "air",
    },
},
```

### Setup a job garage

* **name**: Name of the garage
* **coords**: Coordinates where the NPC will spawn and can be interacted with
* **spawn**: Multiple spawn points where the vehicle can be spawned
* **radius**: Interaction radius with the NPC
* **jobs**: All jobs that can access the garage
* **type**: Optional; can be "car," "sea," or "air"
* **blip\_override**: Color of the blip on the minimap
* **pedOverride**: Ped model that spawns at the specified coordinates

```lua
job_garages = {
    {
        name = "Los Santos PD",
        coords = vector4(456.86, -1019.84, 28.29, 86.76),
        spawn = { vector4(436.31, -997.44, 25.36, 177.98), vector4(431.31, -997.38, 25.36, 179.24), vector4(446.27, -1025.07, 28.23, 2.21), vector4(441.79, -1025.24, 28.3, 0.32), vector4(438.88, -1025.94, 28.37, 4.76), vector4(434.93, -1026.21, 28.44, 1.64), vector4(431.04, -1026.73, 28.52, 1.23), vector4(427.57, -1027.66, 28.59, 4.66) },
        radius = 2.0,
        jobs = { "police" },
        type = "car",
        blip_override = { -- You can override the default blip settings here, (enabled and name are not overridable)
            color = 47
        },
        pedOverride = `mp_m_securoguard_01`,
    },
    {
        name = "Pillbox Hill Hospital",
        coords = vector4(297.32, -602.64, 43.30, 65.41),
        spawn = { vector4(362.75, -612.73, 28.38, 229.15), vector4(289.62, -612.02, 43.0, 65.41) },
        radius = 2.0,
        jobs = { "ambulance" },
        type = "car",
        blip_override = { -- You can override the default blip settings here, (enabled and name are not overridable)
            color = 15
        }
    },
},
```

### Setup a gang garage

* **name**: Name of the garage
* **coords**: Coordinates where the NPC will spawn and can be interacted with
* **spawn**: Multiple spawn points where the vehicle can be spawned
* **radius**: Interaction radius with the NPC
* **gangs**: All gangs that can access the garage
* **type**: Optional; can be "car," "sea," or "air"
* **blip\_override**: Color of the blip on the minimap
* **pedOverride**: Ped model that spawns at the specified coordinates

```lua
gang_garages = {
    {
        name = "Ballas",
        coords = vector4(117.6, -1950.33, 20.75, 52.24),
        spawn = { vector4(115.46, -1940.0, 20.01, 92.07), vector4(115.02, -1943.26, 20.01, 91.64), vector4(113.97, -1946.2, 20.0, 79.84), vector4(111.64, -1948.54, 20.0, 79.28), vector4(108.62, -1950.46, 19.99, 80.91) },
        radius = 2.0,
        gangs = { "ballas" },
        type = "car",
        blip_override = { -- You can override the default blip settings here, (enabled and name are not overridable)
            color = 27,
        },
        pedOverride = `g_m_y_ballasout_01`,
    },
},
```

### Demonstration Video

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPa9uzNGOcZTp0AwDXTgU%2Fuploads%2FX9gCfVY0zUOSDMgdYPul%2F2025-03-04%2014-21-08.mp4?alt=media&token=cdeb45cb-e5e5-4449-bdba-62202ef2382e>" %}
