# Configuration

### config.lua:

```lua
Locales = {} -- edit translation in config/locales
Config = {}

Moon_Hud = {}
Moon_Hud.Config = {
    --  Server-Settings --
    locale = "en", -- locale file to use from config/locales/ --
    framework = "auto", -- auto, esx, qb, qbox, vrp
    useMph = false, -- use mph or kmh for speed
    voice = "salty", -- 'pma', 'salty', '' -- else use the exports and keep this empty --
    voiceRangeChangeNotify = true, -- notify when voice range changes --
    announceTime = 15000, -- how long the announces should show on default
    -- hud default positions --
    hudElements = {
        ["hunger"] = { pos = { x = 1.55, y = 75.75, }, active = true },
        ["thirst"] = { pos = { x = 6.97, y = 75.75, }, active = true },
        ["player_count"] = { pos = { x = 1.05, y = 7.93, }, active = true },
        ["player_id"] = { pos = { x = 1.05, y = 10.93, }, active = true },
        ["time"] = { pos = { x = 1.00, y = 2.88, }, active = true },
        ["bank"] = { pos = { x = 89.54, y = 12.15, }, active = true },
        ["cash"] = { pos = { x = 92.9, y = 16.15, }, active = true },
        ["black"] = { pos = { x = 92.9, y = 20.15, }, active = true },
        ["job"] = { pos = { x = 92.9, y = 26.15, }, active = true },
        ["weapon"] = { pos = { x = 82.32, y = 7.99, }, active = true },    
    },
    -- Client-Settings --
    controls = {
        request = {
            accept_key = "J", -- Z is Y on german keyboards
            decline_key = "X", --
        },
        editMode = {
            enabled = true,
            command = "editHud",
            useCommand = true,
            key = "LMENU", -- Left alt
            useKeybind = false,
        },
    },
    -- Carhud-Settings --
    carhud = {
        -- (mph or km/h can be changed in this config)
        showRpm = true, -- show rpm instead of speed
        updateTime = 10, -- update time in ms
    },
    -- Food-Settings --
    food = {
        enabled = true, -- enable/disable food hud
    },
    notifySound = {
        enabled = true, -- enable/disable sound for notify
        soundId = -1,
        audioName = "ATM_WINDOW",
        audioRef = "HUD_FRONTEND_DEFAULT_SOUNDSET",
    },
    txAdminEvents = {
        -- INFO: Texts can be set in locale file
        useAnnounce = true, -- enable/disable txadmin events (announcement) IMPORTANT: disable txadmin announce in settings > game > Hide Announcement Notification to you use Moon-Scripts announce
        restartAnnounce = true, -- enable/disable custom txadmin restart announce (for example: "Server restarts in 20 Minutes!"). IMPORTANT: disable txadmin announce in settings > game > Hide Scheduled Restart Warnings to you use Moon-Scripts restart announce
    },
    defaultStreetAndCarNames = {
        enabled = false, -- enable/disable default street and car names
    },
}

Config.Announce = {
    permissions = {
        "admin",
        "superadmin",
        "god",
        "mod",
    },
    sound = {
        enabled = true, -- enable/disable sound for notify
        soundId = -1,
        audioName = "CHECKPOINT_NORMAL",
        audioRef = "HUD_MINI_GAME_SOUNDSET",
    }
}
```

### style.css:

```css
:root {
    --primary: #981aff;
    --white: rgba(255, 255 ,255, 1);
    --black: rgba(0, 0, 0, 1);
    --gray: rgba(255, 255, 255, .5);
    --speedo-color: #39e039;
    --black-money-color: rgb(183, 69, 69);
    --container-background: #07141867;
    --font: 'Poppins', sans-serif;
    --bank-color: var(--primary);
    --money-color: var(--primary);
    --hunger-color: var(--primary);
    --thirst-color: var(--primary);
    --notify-yellow: #fffb1c;
    --notify-green: #39e039;
    --notify-lightblue: #981aff;
    --notify-red: #e03939;

    --element-size: 1.0;
    --server-name-size: 1.0;
    --speedo-size: 1.0; 
    --announce-size: 1.0;
    --notify-size: 1.0;
}
```
