# Configuration

## Commands

List of useful commands for the basic functions of your server using our asset, you can execute them using ExecuteCommand or read them informatively.

| copy | usability | description                |
| ---- | --------- | -------------------------- |
| hud  | /hud      | open the hud Control Panel |

## 1. main scripts

Here you must to change this config to work with your server, like your Core Name and your voice name script, Fuel name script ...

```lua
L2SHUD.Corename = 'l2s-core' -- Your Core Name (Only For QBcore Files)
L2SHUD.ShortName = 'l2s-' -- Triggers Name will be change like qb-hud
L2SHUD.voicescript = 'l2s-voice' -- pma-voice name , if you use l2s files only
L2SHUD.inputexport = 'l2s-input'-- qb-input name
L2SHUD.fuelexport = 'LegacyFuel'-- Fuel name
```

## 2. HUD Color

To Change your HUD Color Open The File in vs code and search the old color (#1ADAC5) Replace To New Color.

```lua
L2SHUD.maincolor = '#1ADAC5' -- Main Color
L2SHUD.hudcolor2 = '#ffffff' -- Texts Color
L2SHUD.progresscolor = '#1ADAC5' -- Progressbar Color
L2SHUD.middecolor = '#FFF523' -- Middle Things Color (yellow)
L2SHUD.errorcolor = '#B82014' -- Red Things Color (red)
```

## 3. Priority System

l2s-hud has a Priority System as long as you want to enable it in config.lua, you can change the message of the priority on and off.

```lua
L2SHUD.PrioritySystem = true -- Priroty System
L2SHUD.PriroityMessages = 'Priority has been activated. Any criminal act is strictly prohibited. In addition, thefts have been disabled until the priority expires.'
L2SHUD.PriroityMessagesDone = 'Priority has been deactivated'
```

## 4. main settings

in this config you have money and radar setting, first you have the money if you wanna Show money constantly you must to do it true.

```lua
L2SHUD.Money = {}
L2SHUD.Money.ShowConstant = false -- Show money constantly
L2SHUD.Radar = {}
L2SHUD.Radar.NoRadarVehicles = {
    "bmx",
    "cruiser",
    "fixter",
    "scorcher",
    "tribike",
    "tribike2",
    "tribike3",
}
```

## 5. stress and speed

in this config you can change the Minimum of Stress and Speed.

```lua
QBStress.MinimumStress = 70
QBStress.MinimumSpeed = 250
```


---

# 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://l2s.gitbook.io/l2s-dev-documentations/qbcore/hud/configuration.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.
