# Config Overview

All configuration is done in a single file: **`config.lua`**

This file is shared between client and server, and is **not escrowed** — meaning you can freely edit it.

***

### Full Default Config

```lua
Config = Config or {}

-- ─────────────────────────────────────────────
-- FRAMEWORK
-- ─────────────────────────────────────────────
Config.CoreName = 'qb-core'  -- Your QBCore export name

-- ─────────────────────────────────────────────
-- STOPFIRE PERMISSIONS
-- ─────────────────────────────────────────────
Config.AllowQBCoreGroups = true
Config.AllowedGroups     = { 'god', 'admin', 'mod' }
Config.AllowedLicenses   = {
    "license:aaaa",  -- Replace with real license IDs
}

-- ─────────────────────────────────────────────
-- COMMUNITY SERVICE PERMISSIONS
-- ─────────────────────────────────────────────
Config.ComservAllowQBCoreGroups = true
Config.ComservAllowedGroups     = { 'god', 'admin' }
Config.ComservAllowedLicenses   = {
    "license:aaaa",
}

-- ─────────────────────────────────────────────
-- STOPFIRE LIMITS
-- ─────────────────────────────────────────────
Config.MinActions = 1
Config.MaxActions = 200  -- Max minutes for Stopfire

-- ─────────────────────────────────────────────
-- COMMUNITY SERVICE LIMITS
-- ─────────────────────────────────────────────
Config.MaxActionscomserv = 200  -- Max tasks for Community Service

-- ─────────────────────────────────────────────
-- ESCAPE PENALTY
-- ─────────────────────────────────────────────
Config.ServiceExtensionOnEscape = 8  -- Tasks added when player escapes

-- ─────────────────────────────────────────────
-- LOCATIONS
-- ─────────────────────────────────────────────
Config.ServiceLocation  = { x = 3072.54, y = -4759.73, z = 15.26 }
Config.ReleaseLocation  = { x = 427.33,  y = -979.51,  z = 30.2  }

Config.ServiceLocations = {
    { type = "cleaning",  coords = vector3(3072.54, -4759.73, 15.26) },
    { type = "cleaning",  coords = vector3(3043.45, -4761.33, 15.26) },
    { type = "cleaning",  coords = vector3(3044.09, -4719.18, 15.26) },
    { type = "cleaning",  coords = vector3(3056.06, -4705.7,  15.26) },
    { type = "cleaning",  coords = vector3(3056.4,  -4690.82, 15.26) },
    { type = "gardening", coords = vector3(3043.99, -4683.34, 15.26) },
}

-- ─────────────────────────────────────────────
-- WORK AREA BOUNDS (escape detection)
-- ─────────────────────────────────────────────
Config.WorkAreaCenter  = vector3(1690.24, 2591.48, 45.56)
Config.WorkAreaRadius  = 500.0
Config.ServiceCenterRadius   = 650.0
Config.LocationGraceRadius   = 150.0

-- ─────────────────────────────────────────────
-- HUD TEXT POSITIONS
-- ─────────────────────────────────────────────
Config.StopfireTextPos  = { 0.78, 0.92 }   -- bottom right
Config.CommunityTextPos = { 0.175, 0.955 } -- bottom left
```

***

### Quick Reference

| Variable                          | Default            | What it does                |
| --------------------------------- | ------------------ | --------------------------- |
| `Config.CoreName`                 | `'qb-core'`        | Framework export name       |
| `Config.MaxActions`               | `200`              | Max Stopfire minutes        |
| `Config.MaxActionscomserv`        | `200`              | Max Community Service tasks |
| `Config.MinActions`               | `1`                | Minimum sentence amount     |
| `Config.ServiceExtensionOnEscape` | `8`                | Penalty for escape attempts |
| `Config.ServiceLocation`          | Bolingbroke coords | Teleport destination        |
| `Config.ReleaseLocation`          | MRPD coords        | Where player is released    |

***

> See the sub-pages for detailed explanations of each section.


---

# 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-stoptroll/config-overview.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.
