> For the complete documentation index, see [llms.txt](https://tefox-scripts.gitbook.io/tefox-scripts-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tefox-scripts.gitbook.io/tefox-scripts-docs/tefox-scripts-documentation/tefox_hud/installation.md). Agents can also search and read this documentation through its [MCP server](https://tefox-scripts.gitbook.io/tefox-scripts-docs/~gitbook/mcp).

# Installation

### <mark style="color:$primary;">1. Add the resource</mark>

Place the `tefox_hud` folder in your <mark style="color:$info;">`resources`</mark> directory.

{% hint style="info" %}
⚠️ Keep the folder name as <mark style="color:$info;">`t`</mark>`efox_hud`. Other scripts call the exports by this name.
{% endhint %}

### <mark style="color:$primary;">2. Remove your old HUD</mark>

Remove any other HUD <mark style="color:$info;">(</mark>for example <mark style="color:$info;">`qb-hud`</mark>, <mark style="color:$info;">`ps-hud`</mark> or <mark style="color:$info;">`esx_hud`</mark><mark style="color:$info;">)</mark> so the two don't overlap.

### <mark style="color:$primary;">3. Start it in</mark> <mark style="color:$primary;"></mark><mark style="color:$primary;">`server.cfg`</mark>

Add it **after** your framework, voice and fuel resources:

```cfg
ensure tefox_hud
```

### 4. Set your server logo

Replace <mark style="color:yellow;">`web/img/logo.png`</mark> with your own logo, then set your server name in <mark style="color:$info;">`config.lua`</mark>:

```lua
Config.Brand = {
    Style = 'tile',
    Name = 'Your Server Name',
    Logo = 'img/logo.png',
    ShowOnline = true
}
```

### <mark style="color:$primary;">5. Avoid duplicate systems</mark>

If your server already has one of these, disable it in the HUD:

| You already have        | Set in `config.lua`                 |
| ----------------------- | ----------------------------------- |
| A seatbelt script       | `Config.Seatbelt.Mode = 'external'` |
| A cruise control script | `Config.Cruise.Enabled = false`     |
| A stress script         | `Config.Stress.Enabled = false`     |

### <mark style="color:$primary;">6. Verify</mark>

Set <mark style="color:$info;">`Config.Debug = true`</mark>, restart the resource and load a character. You should see this line in F8:

```lua
[tefox_hud] started | framework: qbcore | voice: pma-voice | fuel: ox_fuel | locale: en
```

Once everything works, set <mark style="color:$info;">`Config.Debug = false`</mark>.

### Opening the settings

Players open the HUD settings with <mark style="color:red;">**`/hud`**</mark> or the <mark style="color:red;">**I**</mark> key. Both can be changed in <mark style="color:$info;">`config.lua`</mark>.
