# UI Text Positions

Both the Stopfire counter and the Community Service counter are drawn as 2D text overlays directly on the player's screen. You can reposition them using the config variables below.

***

### Config Variables

```lua
Config.StopfireTextPos  = { 0.78, 0.92 }   -- Stopfire counter position
Config.CommunityTextPos = { 0.175, 0.955 }  -- Community Service counter position
```

Each value is `{ x, y }` in **normalized screen coordinates**:

* `0.0` = left edge / top edge
* `1.0` = right edge / bottom edge
* `0.5` = center

***

### Visual Reference

```
(0.0, 0.0) ─────────────────── (1.0, 0.0)
     │                               │
     │                               │
     │          Screen               │
     │                               │
     │  CS counter                   │  Stopfire counter
     │  (0.175, 0.955)          (0.78, 0.92)
(0.0, 1.0) ─────────────────── (1.0, 1.0)
```

***

### Common Positions

| Location      | x      | y      |
| ------------- | ------ | ------ |
| Bottom left   | `0.10` | `0.95` |
| Bottom center | `0.50` | `0.95` |
| Bottom right  | `0.80` | `0.95` |
| Top left      | `0.10` | `0.05` |
| Top right     | `0.85` | `0.05` |
| Center screen | `0.50` | `0.50` |

***

### Default Positions Explained

#### Stopfire Counter — `{ 0.78, 0.92 }`

Displayed in the **bottom-right** area of the screen, near the minimap / health bar zone. Example display:

```
Stopfire remaining: ~45~ min
```

#### Community Service Counter — `{ 0.175, 0.955 }`

Displayed in the **bottom-left** area. Example display:

```
Community service remaining: 12
```

***

### Tips

* Avoid placing text directly over the minimap (bottom-left corner in GTA V defaults to around `0.06, 0.94` with a width of \~`0.15`)
* If you use a custom HUD resource that moves the minimap, adjust these values accordingly
* Values outside the `0.0–1.0` range will place text off-screen

***


---

# 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/ui-text-positions.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.
