> For the complete documentation index, see [llms.txt](https://rayn-scripts.gitbook.io/rayn-scripts-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://rayn-scripts.gitbook.io/rayn-scripts-docs/rayn_ghosthunting/ui-and-notifications.md).

# UI & notifications

Place every HUD block and the notifications anywhere on screen.

Every block of the interface has its own position in `Config.UI.positions`:

| Key       | Block                                     |
| --------- | ----------------------------------------- |
| `notify`  | Notifications                             |
| `prompt`  | Interaction prompt (e.g. \[E] Case board) |
| `case`    | Location name, difficulty and timer       |
| `team`    | Team members with their sanity            |
| `sanity`  | Your sanity bar                           |
| `tools`   | Held tool / hotbar and key hints          |
| `reading` | EMF, thermometer and spirit box display   |

## Presets

`top-left`, `top-center`, `top-right`, `center-left`, `center`, `center-right`, `bottom-left`, `bottom-center`, `bottom-right`

```lua
Config.UI.positions.notify = 'bottom-right'
```

## Custom position

Use any CSS offsets – `px`, `%`, `vh`, `vw`. `centerX` / `centerY` shift the block by half of its size, so it is centered on the given point.

```lua
Config.UI.positions.sanity = { top = '40%', right = '2%' }
Config.UI.positions.prompt = { bottom = '30%', left = '50%', centerX = true }
```

## Other options

```lua
Config.UI = {
    scale  = 1.0,      -- global scale
    margin = '24px',   -- distance from screen edges used by presets
    notify = {
        duration = 5000,   -- ms
        max      = 5,      -- visible at once
        stack    = 'auto', -- 'down' | 'up' | 'auto' (up when anchored at the bottom)
    },
}
```

{% hint style="info" %}
Prefer your own systems? Set `Config.Notify = 'ox'` / `'framework'` / `'gta'` and `Config.Prompt = 'ox'` / `'gta'`.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://rayn-scripts.gitbook.io/rayn-scripts-docs/rayn_ghosthunting/ui-and-notifications.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
