# adding a location

Follow these steps to add a new garage to the resource.

{% stepper %}
{% step %}

### Add the entry to config.lua

Open `config.lua` and add a new block at the next available index inside `Config.Locations`:

```lua
[20] = { Job = {'mechanic'}, -- or Gang = 'yourgang', or both Gang = nil, Logo = 'logos/mechanic.png', Theme = { accent = '#F97316', accent2 = '#C2410C', panelTop = '#1C1008', panelBot = '#0E0804', btnTop = '#EA580C', btnBot = '#7C2D12' }, Ped = { model = 's_m_y_mechanic_01', coords = vector4(0.0, 0.0, 0.0, 0.0), -- replace with real coords name = 'Mechanic Garage', targetLabel = 'Open Mechanic Garage' }, SpawnCoords = vector4(0.0, 0.0, 0.0, 0.0), -- replace with real coords Vehicles = { { VehicleName = 'Tow Truck', VehicleSpawnName = 'towtruck', Grade = 0, livery = 0, colors = {0,0}, extras = {} }, { VehicleName = 'Flatbed', VehicleSpawnName = 'flatbed', Grade = 2, livery = 0, colors = {0,0}, extras = {} }, } },
```

{% endstep %}

{% step %}

### Get spawn coordinates

In-game, stand at the position where you want the ped and vehicle to appear, then run:

```bash
/coords
```

Copy the output into `Ped.coords` and `SpawnCoords`. The fourth value (`w`) is the heading in degrees.
{% endstep %}

{% step %}

### Add the logo

Place a transparent PNG at `html/logos/mechanic.png`. Recommended size: **160 × 80 px** minimum.
{% endstep %}

{% step %}

### Restart the resource

```bash
ensure moh-jobgarage
```

The new ped will spawn and the garage will be accessible to players with the configured job or gang.
{% endstep %}
{% endstepper %}

## Tips

* **Multiple jobs:** use a table — `Job = {'police', 'sheriff'}`. A player only needs to match one.
* **Job + gang access on the same garage:** set both `Job` and `Gang`. Either condition grants access.
* **Grade-locked vehicles:** set `Grade = 2` (or higher) on specific vehicles. Players below that grade will not see those entries in the menu.
* **Ped model list:** any valid GTA V ped model name works. See community ped model lists for options beyond the built-in law/gang models.


---

# 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://mohssins.gitbook.io/mohscriptsdocs/moh-jobgarage/adding-a-location.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.
