Agency Docs
Standalone

Agency-Hud Configuration

Modern HUD with player status, vehicle dashboard, compass, voice indicator, money and server card.

v1.3.0Paid3 Pages

01Configuration

Quick Installation · config.lua · Agency-Hud

Download config.lua

--[[ ╔══════════════════════════════════════════════════════════════════════╗ ║ AGENCY HUD - CONFIGURATION ║ ║ (c) Agency Scripts ║ ╚══════════════════════════════════════════════════════════════════════╝ CONTENTS 1. Agency Companion 2. Server Settings 3. Locale / Language 4. Commands 5. HUD Defaults 6. Agency-Notify Integration 7. Agency-Seatbelt Integration 8. Agency-Vehiclekeys Integration 9. Agency-Repairkit Integration 10. Agency-Phone Integration 11. Vehicle HUD Defaults 12. Voice Indicator / System 13. Drive Assist 14. Framework Integration 15. Minimap 16. Logo Inversion 17. Timezone / Clock 18. Misc Most settings here are fallback defaults: manage live settings in game with the admin command (/agencyhudadmin). Discord: https://discord.gg/RTax3aBMUs · Shop: https://shop.agencyg.de ]] Config = {} --============================================================================== -- 1 · AGENCY COMPANION --============================================================================== -- Agency Companion app (free): -- iPhone, iPad and Mac: https://apps.apple.com/app/id6778632140 -- Android: https://play.google.com/store/apps/details?id=de.agencyg.companion -- Web app (browser): https://companion.agencyg.de/app -- Agency-Companion script (free resource, one /app code for every Agency script): https://shop.agencyg.de/en/product/agency-companion -- One resource for every Agency script: your players link them with the free -- Agency Companion app (iPhone, Android, web), and your admins pick one accent -- colour for all Agency scripts in game (/app, admin page). Drop it into your -- resources and this script follows it by itself. Nothing else to set up. Config.Companion = { Enabled = true, -- connect with Agency-Companion (app tips + accent colour) } -- ── Accent colour ──────────────────────────────────────────────────────────── -- false = the colour from Agency-Companion, gold without it -- { r,g,b } = a fixed colour for this script only, e.g. { 0, 190, 255 } Config.AccentColor = false -- IMPORTANT: -- Most settings in this file are fallback defaults only. -- Manage live/global settings in-game with your configured admin command. --============================================================================== -- 2 · SERVER SETTINGS --============================================================================== Config.ServerName = "Agency Roleplay" -- fallback only (use /agencyhudadmin) Config.ServerTag = "" -- fallback only (use /agencyhudadmin) Config.ServerLogo = "logo.png" -- fallback only (use /agencyhudadmin) Config.ServerNameFont = "inter" -- fallback only (use /agencyhudadmin) --============================================================================== -- 3 · LOCALE / LANGUAGE --============================================================================== -- en bg cs da de el es fi fr hr hu it ja ko nb nl pl pt ro ru sk sv tr uk zh Config.Locale = "en" -- fallback only (use /agencyhudadmin) --============================================================================== -- 4 · COMMANDS --============================================================================== -- You can freely rename these commands. -- Use without slash, e.g. "ahud" not "/ahud" Config.Commands = { Customizer = "ahud", Admin = "agencyhudadmin", } --============================================================================== -- 5 · HUD DEFAULTS --============================================================================== -- Fallback, global override via /agencyhudadmin Config.DefaultHUD = { enabled = true, scale = 1.0, -- 0.7 – 2.5 opacity = 1.0, -- 0.1 – 1.0 (background opacity) hudStyle = "agency", -- agency (new default) | classic looks: minimal | glass | solid hudLayout = "bars", -- bars | circles (round gauges in a row) themeMode = "auto", -- auto | dark | light (auto = white by day, dark by night) position = "bottom-left",-- bottom-left | bottom-right | bottom-center colorAccent = "agency", -- "agency" = colour from Agency-Companion (gold without it), or a hex colour colorBg = "#0a0a1a", -- background colour showHealth = true, showArmor = true, showHunger = true, showThirst = true, showStress = false, showMoney = true, showId = true, showVoice = true, showCompass = true, showClock = true, showStreet = true, showStreetBg = true, showHudBg = true, -- player HUD panel background minimapOnFoot = true, -- false = minimap only shows in a vehicle } --============================================================================== -- 6 · AGENCY-NOTIFY INTEGRATION --============================================================================== -- Agency-Notify (free): https://agency-script.tebex.io/package/6937769 -- Used by itself when it runs (any common folder name, also inside Agency-Essentials). Config.AgencyNotifyIntegration = true --============================================================================== -- 7 · AGENCY-SEATBELT INTEGRATION --============================================================================== -- Requires Agency-Seatbelt resource to be running. -- When enabled, seatbelt status is read from Agency-Seatbelt -- via exports['agency-seatbelt']:isSeatbeltOn() instead of -- the built-in K-key toggle. https://agency-script.tebex.io/package/6927501 Config.AgencySeatbeltIntegration = true -- true = use Agency-Seatbelt, false = built-in toggle (K key) Config.SeatbeltDefault = false -- default displayed status while awaiting first update --============================================================================== -- 8 · AGENCY-VEHICLEKEYS INTEGRATION --============================================================================== -- Requires Agency-Vehiclekeys resource to be running. -- When enabled, the built-in engine toggle (M key) is disabled; -- engine control is handled by Agency-Vehiclekeys instead. Config.AgencyVehiclekeysIntegration = true --============================================================================== -- 9 · AGENCY-REPAIRKIT INTEGRATION --============================================================================== -- Requires Agency-Repairkit resource to be running. -- When enabled, vehicle HUD shows a damage/crack warning effect -- based on engine damage level while driving. Config.AgencyRepairkitIntegration = true --============================================================================== -- 10 · AGENCY-PHONE INTEGRATION --============================================================================== -- Requires Agency-Phone resource to be running. -- When enabled, bottom-right HUD elements adapt while the phone is open. Config.AgencyPhoneIntegration = true Config.AgencyPhoneOffset = 120 -- base phone overlap width in px (for bottom-right HUD handling) --============================================================================== -- 11 · VEHICLE HUD DEFAULTS --============================================================================== -- Fallback, global override via /agencyhudadmin Config.DefaultVehicleHUD = { enabled = true, vehStyle = "agency", -- agency (new default) | classic looks: minimal | glass | sport | round vehPosition = "bottom-right", -- bottom-right | bottom-center | bottom-left vehScale = 1.0, -- 0.5 - 4.0 speedUnit = "kmh", -- kmh | mph showFuel = true, showRPM = true, -- Always visible by default showGear = true, showSeatbelt = true, showEngine = true, showDamage = true, -- vehicle damage/crack warning effect showSpeedWarning = false, -- speed warning visuals (per-player toggle) showVehBg = true, -- vehicle HUD panel background showPassenger = true, -- passengers see the vehicle HUD too (warnings stay with the driver) showAirAltitude = true, -- aircraft altitude gauge showBoatWave = true, -- boat swell / wave gauge colorAccent = "agency", -- "agency" = colour from Agency-Companion, or a hex colour colorBg = "#080814", -- background colour for vehicle HUD } --============================================================================== -- 12 · VOICE INDICATOR / SYSTEM --============================================================================== -- Shows a microphone status chip in the top-right brand card. Config.PMAVoiceIndicator = true -- Voice backend selection: -- "auto" -> prefer pma-voice, then saltychat, then keyboard fallback -- "pma" -> force pma-voice (falls back to keyboard if unavailable) -- "saltychat" -> force SaltyChat (shows "not connected" when plugin is offline) -- "keyboard" -> always use built-in keyboard fallback mode Config.VoiceSystem = "saltychat" -- When enabled, HUD automatically falls back to another supported voice backend -- if the preferred one is not running / not connected. -- Supported auto-detect order: pma-voice -> saltychat -> keyboard fallback. Config.VoiceAutoDetect = true -- Keyboard fallback voice mode (used when no active voice backend is available). Config.FallbackVoice = { Enabled = true, -- allow local voice range cycle fallback CycleCommand = "ahudvoice", -- command used for key mapping CycleKey = "Z", -- default key (can be rebound by players) Ranges = { 3.0, 8.0, 15.0 }, -- whisper, normal, shout DefaultIndex = 2, -- 1..#Ranges ShowCircle = true, -- draw temporary voice circle when range changes/talking CircleDurationMs = 1400, -- show circle after range switch CircleAlpha = 90, -- 0..255 CircleHeight = 0.26, -- marker height } --============================================================================== -- 13 · DRIVE ASSIST --============================================================================== -- Low fuel and speed warnings Config.DriveAssist = { Enabled = true, LowFuel = { Enabled = true, -- repeated warning when fuel is low Threshold = 15, -- percent (0-100) RepeatMs = 35000, -- warning repeat interval NotifyDuration = 5000, -- Agency-Notify duration }, SpeedWarning = { Enabled = false, -- server default OFF ThresholdKmh = 140, -- used when HUD unit = km/h ThresholdMph = 87, -- used when HUD unit = mph RepeatMs = 22000, -- warning repeat interval NotifyDuration = 4500, -- Agency-Notify duration } } --============================================================================== -- 14 · FRAMEWORK INTEGRATION --============================================================================== -- "auto" → detected automatically at runtime (recommended) -- "standalone" → no framework dependency -- "esx" → force ESX (es_extended) -- "qbcore" → force QBCore (qb-core) -- "qbox" → force Qbox (qbx_core) -- "ox" → force ox_core -- "nd" → force ND_Core (nd_core) Config.Framework = "auto" -- Framework money display toggle (all supported frameworks + standalone exports/statebags) Config.ShowMoney = true --============================================================================== -- 15 · MINIMAP --============================================================================== Config.CustomMinimap = false -- fallback only (native minimap recommended) Config.HideNativeMinimapVitals = true -- fallback only (use /agencyhudadmin) --============================================================================== -- 16 · LOGO INVERSION --============================================================================== -- If enabled, logo is forced white in dark mode / black in light mode. Config.LogoInvertDarkMode = true -- fallback only (use /agencyhudadmin) Config.LogoInvertLightMode = true -- fallback only (use /agencyhudadmin) --============================================================================== -- 17 · TIMEZONE / CLOCK --============================================================================== -- "game" → show GTA world clock (default, follows server-side SetClockTime) -- "auto" → show real server machine time (os.date on the FiveM server) -- number → UTC offset in hours, e.g. 2 for UTC+2, -5 for UTC-5 Config.Timezone = "game" -- fallback only (use /agencyhudadmin) --============================================================================== -- 18 · MISC --============================================================================== Config.HUDUpdateInterval = 500 -- ms between HUD data refreshes Config.DebugMode = false -- fallback only (use /agencyhudadmin)

Still stuck after this page? Our support team takes it from here.