Configuration

This page contains the basic configuration settings for the Elite-HUD script.

Here is the basic configuration of Elite-HUD

Config = {}

Config.Framework = "ESX" -- "QBCore", "ESX", "custom", or "auto"

if Config.Framework == "auto" then
    if GetResourceState("es_extended") == "started" then
        Config.Framework = "ESX"
    elseif GetResourceState("qb-core") == "started" then
        Config.Framework = "QBCore"
    else
        Config.Framework = "custom"
    end
end

Config.EnableEditMenu = true -- Menu for custom hud (hide etc..)
Config.EnableKey = true
Config.KeyMenu = "f4"

Config.Status = {
    hunger = "hunger", -- name of your hunger system (dont touch if u use ESX_Status)
    thirst = "thirst"  -- name of your thirst system (dont touch if u use ESX_Status)
}

Config.Color = {
    Progress = {
        Start = "#dfdfdf",
        End = "#cbcbcb"
    },
    HUD = {
        BottomBorder = "#e9e9e9"
    }
}

Config.Locales = {
    Voice = "Range",
    Radio = "Radio",
    RadioOFF = "Off",
    RadioON = "ON",
    Headlight = "Headlight",
    HeadlightOFF = "Off",
    HeadlightON = "On",
    ShowHUD = "Show HUD",
    ShowReward = "Show reward",
    MenuTitle = "HUD Options",
    KeyLabel = "Open HUD menu",
    CloseMenu = "Close"
}


Config.Speedonometer = true
Config.Speed = {
    Unit = "kmh",         --  "kmh" or "mph"
    DisplayUnit = "km/h", -- In HUD (title)
    Multiplier = 3.6      --  m/s → km/h (3.6), m/s → mph (2.23694)
}

Config.VoiceRanges = {
    [1] = "2.5m",
    [2] = "3.5m",
    [3] = "7.5m"
}
Config.ThreadTick = 100 -- 100 ms for Citizen.Thread

Config.MapInteraction = { -- Animation if the player opens the map
    EnableAnimation = true,
    Animation = {
        Dict = "amb@world_human_tourist_map@male@base",
        Name = "base"
    },
    Prop = "prop_tourist_map_01",
    Bone = 28422,
    Offset = vector3(0.0, 0.0, 0.0),
    Rotation = vector3(0.0, 0.0, 0.0)
}

Config.RewardSystem = true -- Enable or Disable reward system
Config.RewardTime = 3600 -- 1 hours = 3600
Config.Rewards = { -- type: item, weapon, money
   { type = "item",    name = "water",     count = 1 },
   { type = "item",    name = "phone",     count = 1 },
   { type = "weapon",  name = "WEAPON_KNIFE", count = 1 },
   { type = "money",   account = "bank",   amount = 500 },
   { type = "money",   account = "money",  amount = 250 },
   { type = "money",   account = "black_money", amount = 100 }
}

Last updated