---
description: All core settings live in config.lua
---

# Configuration

```lua
Config = {}

Config.Framework = "auto" -- Determines which framework to use: auto, esx, or qb
Config.Locales = {}
Config.Language = "en"
Config.SpeedType = "kmh" -- kmh or mph
Config.MaxSpeed = 200

Config.UpdateInterval = 500
Config.SpeedoMeterUpdateInterval = 100
Config.RadioUpdateInterval = 100

Config.ShowAlwaysMiniMap = true

Config.UseBlackMoney = true -- Set to true if you want to use black money --->>> IF NOT WORK YOU NEED EDIT risk-hud\server\editable/utils.lua
Config.useSupporter = true -- show how many team members online

Config.Saltranges = { -- If you are using SaltyChat, set the ranges here(only 3)
    [1] = 3.0,
    [2] = 10.0,
    [3] = 25.0,
}

Config.Belt = {
    active = true,              -- If false, seatbelt always ON, no command
    key = "B",                  -- Default key for seatbelt
    notify_on = {               -- Notification for fastening seatbelt
        type = 'success',
        title = 'Seatbelt',
        message = 'You fastened your seatbelt!'
    },
    notify_off = {              -- Notification for unfastening seatbelt
        type = 'error',
        title = 'Seatbelt',
        message = 'You unfastened your seatbelt!'
    }
}

Config.AdminChat = {
    active = true,
    groups = {
        admin = "Admin",
        superadmin = "GOD",
        god = "GOD"
    }
}

function getFuel(vehicle)
    if GetResourceState('LegacyFuel') == 'started' then
        return exports["LegacyFuel"]:GetFuel(vehicle)
    else
        -- your code
        return 50
    end
end

Config.ServerName =  {
    title = "RISK",
    subtitle = "CITY",
}

Config.Settings = {
    active = true, -- Set to false to disable the menu
    command = "hud", -- Command to open the menu
}

-- Default visibility / state for every element (shown when no personal settings exist)
Config.DefaultHUD = {
    speedo       = 1,     -- Speedometer type (1 = round, 2 = bar, 0 = disabled)
    street       = true,  -- Show street and zone information
	
    thirst       = true,  -- Show thirst level (disable both thirst & hunger if false!)
    hunger       = true,  -- Show hunger level (disable both thirst & hunger if false!)
	
    date         = true,  -- Show date and time
    job          = true,  -- Show job and job grade
    info_box     = true,  -- Show information box
    cash         = true,  -- Show cash amount
    bank         = true,  -- Show bank amount
    black_money  = true,  -- Show black money amount
    weapon       = true,  -- Show current weapon info and ammo
    radio        = true   -- Show radio channel if player is using one
}

function getFramework()
    if Config.Framework == "esx" then
        return exports['es_extended']:getSharedObject(), "esx"
    elseif Config.Framework == "qb" then
        return exports["qb-core"]:GetCoreObject(), "qb"
    elseif Config.Framework == "auto" then
        if GetResourceState('qb-core') == 'started' then
            return exports["qb-core"]:GetCoreObject(), "qb"
        elseif GetResourceState('es_extended') == 'started' then
            return exports['es_extended']:getSharedObject(), "esx"
        end
    end
end

```
