# Configuration

```lua
Config.HUD = { -- This is the default configuration that the players will start with.
    CommandOpenConfig = "hud", -- Command to open the settings panel
    position = "custom",
    style = "circular-icons", -- circular-icons//square-liquid | To start with the circle HUD, type "circular-icons", and if you want to start with the square HUD, type "square-liquid"
    carStyle = "digital", -- digital // circular | To start with the digital car HUD, type "digital," and if you want to use the circular HUD, type "circular"
    hideHud = false, -- If the player has all the bars filled, only the missing option will be displayed.
    
    colors = { -- These are the default colors that will be seen in the script if it is not configured by the player
        primary = "#0a121c",
        secondary = "#8fc7d6",
        tertiary = "#8fc7d6",
    },

    Visibility = { -- Here you'll find a small configuration in case you want to edit and remove some parts of the entire HUD
        showJob = true,
        showCash = true,
        showBank = true,
        showId = true,
        showVoice = true,
        showWeaponHud = true
    }
}
```

* If you want to disable any element of the HUD, you can do so in the `Visibility = {`
* If you want to change the HUD logo to your server's logo, go to `jc_hud/Nui/Assets/logo.png` The file you need to modify is `logo.png`, remember to keep the original size of `189 px` x `248 px`
* You can change the basic HUD color settings (if nothing is configured) to set your server's colors by default in `colors = {`&#x20;

## Gas Station System

By default, you will have the following fuel systems: LegayFuel, ox\_fuel, cdn\_fuel, and esx\_vehicle in `Config.FuelSystem`. If you want to add another system, go to `jc_hud/Editable/Client/CMain.lua` and in the `GetVehicleFuel(veh)`  function you can add your custom system

```lua
function GetVehicleFuel(veh)
    if not veh or veh == 0 then return 100.0 end
    local fuel = 100.0

    if Config.FuelSystem == "legacyfuel" then
        if exports['LegacyFuel'] and exports['LegacyFuel'].GetFuel then
            fuel = exports['LegacyFuel']:GetFuel(veh)
        end

    elseif Config.FuelSystem == "ox_fuel" then
        if exports['ox_fuel'] and exports['ox_fuel'].GetFuel then
            fuel = exports['ox_fuel']:GetFuel(veh)
        end

    elseif Config.FuelSystem == "cdn_fuel" then
        if exports['cdn-fuel'] and exports['cdn-fuel'].GetFuelLevel then
            fuel = exports['cdn-fuel']:GetFuelLevel(veh)
        end

    elseif Config.FuelSystem == "esx_vehicle" then
        if exports['esx_vehicle'] and exports['esx_vehicle'].GetFuel then
            fuel = exports['esx_vehicle']:GetFuel(veh)
        end

    elseif Config.FuelSystem == "none" then
        fuel = 100.0
    end

    return fuel or 100.0
end

```
