Installation Guide

This document explains the full config.lua file used by the HUD resource. Every section is described in detail so server owners can easily customize the HUD to their needs.


Configuration


Framework detection & cache key

circle-check
Config = {}

Config.frameworkType = 'ESX'
-- Available options:
-- 'ESX' | 'QBCore' | 'QBOX' | 'custom'
-- For 'custom', edit:
-- client/custom/client_editable.lua
-- server/server_editable.lua

Config.CacheKey = 'pinkFrog_hud'

frameworkType Defines which framework the HUD should integrate with.

CacheKey Unique key used to store per-player HUD settings (positions, scale, toggles).


Main Accent Color

Defines the main accent color used across the HUD editor and UI.

Supported formats:

  • Single color: hex / rgb / rgba

  • Two colors separated by | to create a gradient

  • Full CSS gradient string


HUD Command & Default Style

  • commandToEnableSettings – chat command that opens the HUD editor

  • DefaultStyle – default HUD style index


HUD Styles

These styles are selectable by the player inside the HUD editor.


Radar Visibility

If enabled, the minimap will only be visible while inside a vehicle.


Vehicle HUD

Designs Available speedometer layouts shown in the editor.

speedUnit

  • kmh

  • mph

speedMultiplier Used if your framework sends speed values in a different unit.

displayInXOtherSpeedo Uses alternative speed widgets for bikes, boats, helicopters, and planes.


Seatbelt System

  • Shows seatbelt status on HUD

  • Optional warning icon when belt is off

  • Can work standalone or be integrated with other belt scripts


Vehicle Mileage (Odometer)

Displays vehicle mileage in the speedometer. Requires mileage logic connection in client/custom/client_editable.lua.


Minimap Base Position

Defines the default minimap position after reset. Editor offsets are applied on top of these values.


Voice & Proximity

Controls microphone indicator and proximity levels.


Cinematic Mode

Adds cinematic black bars and optionally hides the HUD.


Identity Panel

  • Server logo support

  • Job display toggle

  • Optional secondary ID:

    • none

    • cid

    • ssn


Crosshair

Custom NUI crosshair with URL and scaling.


Stress System

Adds a stress HUD element and affects crosshair behavior dynamically.


Vehicle Crash Stress

Adds stress, effects, and optional damage on vehicle impacts.

Includes:

  • First-person force

  • Camera shake

  • Screen blink

  • Temporary control freeze

  • Sound effects


Blood Effects

Displays blood overlays depending on:

  • Current health %

  • Damage taken in one hit

Supports persistent low-health pulsing effect.


Player HUD Elements

Each element can be:

  • Enabled / disabled

  • Color customized

  • Repositioned in editor


Vehicle HUD Elements


Hide Default GTA HUD

Removes default GTA HUD components for a clean RP UI.


Editor Preview Values

Used only in the HUD editor preview.


UI & Translations

Supports multiple languages. You can freely add new locales and translate all editor strings.

Last updated