> For the complete documentation index, see [llms.txt](https://complete-scripts.gitbook.io/complete-scripts/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://complete-scripts.gitbook.io/complete-scripts/scripts/complete-hud/config.md).

# Config

Check out the default STANDALONE config file.

<details>

<summary>STANDALONE</summary>

```lua
-- Version: 3.1.0
Config = {}
Config.Debug = false

-- === GENERAL ===
Config.MoneyCurrency       = '$'
Config.CreateAnnouncement  = 'create-announcement' -- command name (to use this you need to have the 'command.commandName' ACL object allowed to one of yours identifiers)
Config.HideHudCommand      = 'hide' -- command name
Config.SettingsCommand     = 'settings' -- command name
Config.TimeZonesDifference = 1 -- in hours, add or remove hours to the UTC time
Config.MaxPlayers          = 64 -- max number of players of the server
Config.PostalCodes		   = true


-- === HUD CUSTOMIZATION ===
Config.ServerDisplayText   = 'complete-scripts.com' -- text to display on the left of the server image
Config.LogoImgName         = 'logo.png' -- make sure to add the image in ./html/img


-- === PAUSE MENU ===
Config.PauseMenu           		= true
Config.PauseMenuCamAnimation 	= true -- set it to false if you don't want the camera animation rotating at your player
Config.InventoryChatCommand 	= 'inventory'


-- === RADIO ===
Config.Radio       		   = 'pma-voice' -- name of the voip using: mumble-voip, pma-voice, tokovoip_script
Config.You           	   = '(You)' -- "Name Config.You" to display yourself in the radio list


-- === KEY MENU ===
Config.OpenKeyMenu           = "L"
Config.OpenKeyMenuCommand    = "keys"
Config.KeyMappingDescription = "Server keys"


-- === SETTINGS MENU ===
Config.KeyMapOnSettings      = false -- if true, you can access the settings menu by pressing the key
Config.SettingsDescription   = "Hud settings"
Config.SettingsKeyMapping    = 'F11'


-- === STRESS ===
Config.Stress                  = true
Config.JobWhitelist            = {'ambulance'} 
Config.IncreaseChance          = 0.1
Config.EffectsThreshold        = 50 
Config.ItemsToDecrease = {
    ['coffee'] = 10,
    ['water'] = 5
}
Config.VehicleSpeedWithoutSeatbelt = 70
Config.VehicleSpeedWithSeatbelt    = 200
Config.WeaponsWhitelist = { 
    `weapon_fireextinguisher`,
    `weapon_petrolcan`,
}
Config.StressImpactTiers = {
    { minStress = 50, maxStress = 59, screenBlurDuration = 1500, triggerInterval = { min = 50000, max = 60000 } },
    { minStress = 60, maxStress = 69, screenBlurDuration = 2000, triggerInterval = { min = 40000, max = 50000 } },
    { minStress = 70, maxStress = 79, screenBlurDuration = 2500, triggerInterval = { min = 30000, max = 40000 } },
    { minStress = 80, maxStress = 89, screenBlurDuration = 2700, triggerInterval = { min = 20000, max = 30000 } },
    { minStress = 90, maxStress = 100, screenBlurDuration = 3000, triggerInterval = { min = 15000, max = 20000 } },
}


-- === SPEEDOMETER & SEATBELT ===
Config.Seatbelt           = true -- if TRUE the hud will use it's own seatbelt system, if FALSE it will use Config.CustomSeatbelt
Config.SeatbeltKey        = "B"
Config.CustomSeatbelt     = function()
    -- add your logic to retreive if the player is wearing the seatbelt or not (true or false)
    return false
end
Config.GetFuel            = function(vehicle)
    if GetResourceState('LegacyFuel') == 'started' then
        return exports['LegacyFuel']:GetFuel(vehicle)
    else
        return GetVehicleFuelLevel(vehicle)
    end
end


Config.MonthNames = {
    [1] = "January",
    [2] = "February",
    [3] = "March",
    [4] = "April",
    [5] = "May",
    [6] = "June",
    [7] = "July",
    [8] = "August",
    [9] = "September",
    [10] = "October",
    [11] = "November",
    [12] = "December"
}

-- === FIRST VALUE IS HASH, THE SECOND ONE IS THE NAME OF THE IMAGE ===
Config.Weapon_names = {
    [453432689] = 'WEAPON_PISTOL.png',
    [1593441988] = 'WEAPON_COMBATPISTOL.png',
    [584646201] = 'WEAPON_APPISTOL.png',
    [2578377531] = 'WEAPON_PISTOL50.png',
    [324215364] = 'WEAPON_MICROSMG.png',
    [736523883] = 'WEAPON_SMG.png',
    [4024951519] = 'WEAPON_ASSAULTSMG.png',
    [-1074790547] = 'WEAPON_ASSAULTRIFLE.png',
    [961495388] = 'WEAPON_ASSAULTRIFLE.png', -- MK
    [-2084633992] = 'WEAPON_CARBINERIFLE.png',
    [-86904375] = 'WEAPON_CARBINERIFLE.png', -- MK
    [-1357824103] = 'WEAPON_ADVANCEDRIFLE.png',
    [2634544996] = 'WEAPON_MG.png',
    [2144741730] = 'WEAPON_COMBATMG.png',
    [487013001] = 'WEAPON_PUMPSHOTGUN.png',
    [2017895192] = 'WEAPON_SAWNOFFSHOTGUN.png',
    [3800352039] = 'WEAPON_ASSAULTSHOTGUN.png',
    [2640438543] = 'WEAPON_BULLPUPSHOTGUN.png',
    [911657153] = 'WEAPON_STUNGUN.png',
    [100416529] = 'WEAPON_SNIPERRIFLE.png',
    [205991906] = 'WEAPON_HEAVYSNIPER.png',
    [856002082] = 'WEAPON_REMOTESNIPER.png',
    [-1568386805] = 'WEAPON_GRENADELAUNCHER.png',
    [1305664598] = 'WEAPON_GRENADELAUNCHER_SMOKE.png',
    [-1312131151] = 'WEAPON_RPG.png',
    [375527679] = 'WEAPON_PASSENGER_ROCKET.png',
    [324506233] = 'WEAPON_AIRSTRIKE_ROCKET.png',
    [1752584910] = 'WEAPON_STINGER.png',
    [1119849093] = 'WEAPON_MINIGUN.png',
    [2481070269] = 'WEAPON_GRENADE.png',
    [741814745] = 'WEAPON_STICKYBOMB.png',
    [4256991824] = 'WEAPON_SMOKEGRENADE.png',
    [2694266206] = 'WEAPON_BZGAS.png',
    [615608432] = 'WEAPON_MOLOTOV.png',
    [101631238] = 'WEAPON_FIREEXTINGUISHER.png',
    [883325847] = 'WEAPON_PETROLCAN.png',
    [4256881901] = 'WEAPON_DIGISCANNER.png',
    [2294779575] = 'WEAPON_BRIEFCASE.png',
    [28811031] = 'WEAPON_BRIEFCASE_02.png',
    [600439132] = 'WEAPON_BALL.png',
    [1233104067] = 'WEAPON_FLARE.png',
    [3218215474] = 'WEAPON_SNSPISTOL.png',
    [4192643659] = 'WEAPON_BOTTLE.png',
    [1627465347] = 'WEAPON_GUSENBERG.png',
    [-1063057011] = 'WEAPON_SPECIALCARBINE.png',
    [-1768145561] = 'WEAPON_SPECIALCARBINE.png', -- MK
    [3523564046] = 'WEAPON_HEAVYPISTOL.png',
    [2132975508] = 'WEAPON_BULLPUPRIFLE.png',
    [-2066285827] = 'WEAPON_BULLPUPRIFLE.png', -- MK
    [2460120199] = 'WEAPON_DAGGER.png',
    [137902532] = 'WEAPON_VINTAGEPISTOL.png',
    [2138347493] = 'WEAPON_FIREWORK.png',
    [-1466123874] = 'WEAPON_MUSKET.png',
    [984333226] = 'WEAPON_HEAVYSHOTGUN.png',
    [3342088282] = 'WEAPON_MARKSMANRIFLE.png',
    [1672152130] = 'WEAPON_HOMINGLAUNCHER.png',
    [2874559379] = 'WEAPON_PROXMINE.png',
    [126349499] = 'WEAPON_SNOWBALL.png',
    [1198879012] = 'WEAPON_FLAREGUN.png',
    [3794977420] = 'WEAPON_GARBAGEBAG.png',
    [3494679629] = 'WEAPON_HANDCUFFS.png',
    [171789620] = 'WEAPON_COMBATPDW.png',
    [3696079510] = 'WEAPON_MARKSMANPISTOL.png',
    [3638508604] = 'WEAPON_KNUCKLE.png',
    [4191993645] = 'WEAPON_HATCHET.png',
    [1834241177] = 'WEAPON_RAILGUN.png',
    [3713923289] = 'WEAPON_MACHETE.png',
    [3675956304] = 'WEAPON_MACHINEPISTOL.png',
    [738733437] = 'WEAPON_AIR_DEFENCE_GUN.png',
    [3756226112] = 'WEAPON_SWITCHBLADE.png',
    [3249783761] = 'WEAPON_REVOLVER.png',
    [4019527611] = 'WEAPON_DBSHOTGUN.png',
    [1649403952] = 'WEAPON_COMPACTRIFLE.png',
    [317205821] = 'WEAPON_AUTOSHOTGUN.png',
    [125959754] = 'WEAPON_COMPACTLAUNCHER.png',
    [3173288789] = 'WEAPON_MINISMG.png',
    [3125143736] = 'WEAPON_PIPEBOMB.png',
    [2484171525] = 'WEAPON_POOLCUE.png',
    [419712736] = 'WEAPON_WRENCH.png'
}

-- === SPEEDLIMIT CONFIGURATION ===
-- Define speed limits for different streets
-- Format: [Street Name] = Speed Limit
Config.SpeedLimits = {
	["Joshua Rd"] = 50,
	["East Joshua Road"] = 50,
	["Marina Dr"] = 35,
	["Alhambra Dr"] = 35,
	["Niland Ave"] = 35,
	["Zancudo Ave"] = 35,
	["Armadillo Ave"] = 35,
	["Algonquin Blvd"] = 35,
	["Mountain View Dr"] = 35,
	["Cholla Springs Ave"] = 35,
	["Panorama Dr"] = 45,
	["Lesbos Ln"] = 35,
	["Calafia Rd"] = 30,
	["North Calafia Way"] = 30,
	["Cassidy Trail"] = 25,
	["Seaview Rd"] = 35,
	["Grapeseed Main St"] = 35,
	["Grapeseed Ave"] = 35,
	["Joad Ln"] = 35,
	["Union Rd"] = 40,
	["O'Neil Way"] = 25,
	["Senora Fwy"] = 70,
	["Catfish View"] = 35,
	["Great Ocean Hwy"] = 65,
	["Paleto Blvd"] = 35,
	["Duluoz Ave"] = 35,
	["Procopio Dr"] = 35,
	["Cascabel Ave"] = 30,
	["Procopio Promenade"] = 25,
	["Pyrite Ave"] = 30,
	["Fort Zancudo Approach Rd"] = 25,
	["Barbareno Rd"] = 30,
	["Ineseno Road"] = 30,
	["West Eclipse Blvd"] = 35,
	["Playa Vista"] = 30,
	["Bay City Ave"] = 30,
	["Del Perro Fwy"] = 70,
	["Equality Way"] = 30,
	["Red Desert Ave"] = 30,
	["Magellan Ave"] = 25,
	["Sandcastle Way"] = 30,
	["Vespucci Blvd"] = 40,
	["Prosperity St"] = 30,
	["San Andreas Ave"] = 40,
	["North Rockford Dr"] = 35,
	["South Rockford Dr"] = 35,
	["Marathon Ave"] = 30,
	["Boulevard Del Perro"] = 35,
	["Cougar Ave"] = 30,
	["Liberty St"] = 30,
	["Bay City Incline"] = 40,
	["Conquistador St"] = 25,
	["Cortes St"] = 25,
	["Vitus St"] = 25,
	["Aguja St"] = 25,
	["Goma St"] = 25,
	["Melanoma St"] = 25,
	["Palomino Ave"] = 35,
	["Invention Ct"] = 25,
	["Imagination Ct"] = 25,
	["Rub St"] = 25,
	["Tug St"] = 25,
	["Ginger St"] = 30,
	["Lindsay Circus"] = 30,
	["Calais Ave"] = 35,
	["Adam's Apple Blvd"] = 40,
	["Alta St"] = 40,
	["Integrity Way"] = 30,
	["Swiss St"] = 30,
	["Strawberry Ave"] = 40,
	["Capital Blvd"] = 30,
	["Crusade Rd"] = 30,
	["Innocence Blvd"] = 40,
	["Davis Ave"] = 40,
	["Little Bighorn Ave"] = 35,
	["Roy Lowenstein Blvd"] = 35,
	["Jamestown St"] = 30,
	["Carson Ave"] = 35,
	["Grove St"] = 30,
	["Brouge Ave"] = 30,
	["Covenant Ave"] = 30,
	["Dutch London St"] = 40,
	["Signal St"] = 30,
	["Elysian Fields Fwy"] = 55,
	["Plaice Pl"] = 30,
	["Chum St"] = 40,
	["Chupacabra St"] = 30,
	["Miriam Turner Overpass"] = 30,
	["Autopia Pkwy"] = 35,
	["Exceptionalists Way"] = 35,
	["La Puerta Fwy"] = 65,
	["New Empire Way"] = 30,
	["Runway1"] = "No Limit",
	["Greenwich Pkwy"] = 35,
	["Kortz Dr"] = 30,
	["Banham Canyon Dr"] = 40,
	["Buen Vino Rd"] = 40,
	["Route 68"] = 60,
	["Zancudo Grande Valley"] = 40,
	["Zancudo Barranca"] = 40,
	["Galileo Rd"] = 40,
	["Mt Vinewood Dr"] = 40,
	["Marlowe Dr"] = 40,
	["Milton Rd"] = 35,
	["Kimble Hill Dr"] = 35,
	["Normandy Dr"] = 35,
	["Hillcrest Ave"] = 35,
	["Hillcrest Ridge Access Rd"] = 30,
	["North Sheldon Ave"] = 35,
	["Lake Vinewood Dr"] = 35,
	["Lake Vinewood Est"] = 35,
	["Baytree Canyon Rd"] = 40,
	["North Conker Ave"] = 35,
	["Wild Oats Dr"] = 35,
	["Whispymound Dr"] = 35,
	["Didion Dr"] = 35,
	["Cox Way"] = 35,
	["Picture Perfect Drive"] = 35,
	["South Mo Milton Dr"] = 35,
	["Cockingend Dr"] = 35,
	["Mad Wayne Thunder Dr"] = 35,
	["Hangman Ave"] = 35,
	["Dunstable Ln"] = 35,
	["Dunstable Dr"] = 35,
	["Greenwich Way"] = 35,
	["Greenwich Pl"] = 35,
	["Hardy Way"] = 35,
	["Richman St"] = 35,
	["Ace Jones Dr"] = 35,
	["Los Santos Freeway"] = 70,
	["Senora Rd"] = 45,
	["Nowhere Rd"] = 30,
	["Smoke Tree Rd"] = 35,
	["Cholla Rd"] = 35,
	["Cat-Claw Ave"] = 35,
	["Senora Way"] = 45,
	["Palomino Fwy"] = 65,
	["Shank St"] = 25,
	["Macdonald St"] = 35,
	["Route 68 Approach"] = 60,
	["Vinewood Park Dr"] = 35,
	["Vinewood Blvd"] = 40,
	["Mirror Park Blvd"] = 35,
	["Glory Way"] = 35,
	["Bridge St"] = 35,
	["West Mirror Drive"] = 35,
	["Nikola Ave"] = 35,
	["Nikola Pl"] = 30,
	["East Mirror Dr"] = 35,
	["Mirror Pl"] = 35,
	["El Rancho Blvd"] = 40,
	["Olympic Fwy"] = 60,
	["Fudge Ln"] = 25,
	["Amarillo Vista"] = 30,
	["Labor Pl"] = 35,
	["El Burro Blvd"] = 35,
	["Sustancia Rd"] = 45,
	["South Shambles St"] = 30,
	["Hanger Way"] = 30,
	["Orchardville Ave"] = 30,
	["Popular St"] = 40,
	["Buccaneer Way"] = 45,
	["Abattoir Ave"] = 35,
	["Voodoo Place"] = 30,
	["Mutiny Rd"] = 35,
	["South Arsenal St"] = 35,
	["Forum Dr"] = 35,
	["Morningwood Blvd"] = 35,
	["Dorset Dr"] = 40,
	["Caesars Place"] = 25,
	["Spanish Ave"] = 30,
	["Portola Dr"] = 30,
	["Edwood Way"] = 25,
	["San Vitus Blvd"] = 40,
	["Eclipse Blvd"] = 35,
	["Gentry Lane"] = 30,
	["Las Lagunas Blvd"] = 40,
	["Power St"] = 40,
	["Mt Haan Rd"] = 40,
	["Mt Haan Dr"] = 35,
	["Steele Way"] = 25,
	["Elgin Ave"] = 40,
	["Hawick Ave"] = 35,
	["Meteor St"] = 35,
	["Alta Pl"] = 30,
	["Occupation Ave"] = 35,
	["Carcer Way"] = 40,
	["Eastbourne Way"] = 30,
	["Rockford Dr"] = 35,
	["Abe Milton Pkwy"] = 35,
	["Laguna Pl"] = 30,
	["Sinners Passage"] = 30,
	["Atlee St"] = 30,
	["Sinner St"] = 30,
	["Supply St"] = 30,
	["Amarillo Way"] = 35,
	["Tower Way"] = 35,
	["Decker St"] = 35,
	["Tackle St"] = 30,
	["Low Power St"] = 35,
	["Clinton Ave"] = 35,
	["Fenwell Pl"] = 35,
	["Utopia Gardens"] = 30,
	["Cavalry Blvd"] = 35,
	["South Boulevard Del Perro"] = 35,
	["Americano Way"] = 25,
	["Sam Austin Dr"] = 25,
	["East Galileo Ave"] = 35,
	["Galileo Park"] = 35,
	["West Galileo Ave"] = 35,
	["Tongva Dr"] = 45,
	["Zancudo Rd"] = 35,
	["Movie Star Way"] = 35,
	["Heritage Way"] = 35,
	["Perth St"] = 30,
	["Chianski Passage"] = 30,
	["Lolita Ave"] = 35,
	["Meringue Ln"] = 35,
	["Strangeways Dr"] = 30,
}
```

</details>
