GFX Development
  • gfx
    • About GFX
  • Product Docs
    • 📥GFX All in One Menu
      • 🛠️Setup
        • ⚙️Configuration
        • 📝Setting Permissions
      • 📒Informations
        • 💻For Developers
        • 👨‍💻Admin Commands
      • 🖇️Pages
        • 📄Profile
        • 📄Leaderboard
    • 🏎️GFX Racing
      • 🔨Installation
      • ⚙️Configuration
    • 📸GFX Deathcam
      • 🔨Installation
      • GFX Deathcam V1
        • ⚙️Configuration
      • GFX Deathcam V2
        • ⚙️Configuration
    • 📊GFX Leaderboard
      • 🔨Installation
      • ⚙️Configuration
    • ⚔️GFX Arena
      • 🔨Installation
      • ⚙️Configuration
    • 👨‍👨‍👦‍👦GFX Squad
      • 🔨Installation
      • ⚙️Configuration
      • 💻Exports
    • 🔬GFX Evidence
      • 🔨Installation
      • ⚙️Configuration
    • ❗GFX Notification
      • 🔨Installation
      • ⚙️Configuration
      • 💻Exports and Events
        • ⬆️Exports
        • ⬇️Events
    • 🚚GFX Delivery
      • 🔨Installation
      • ⚙️Configuration
    • 🛍️GFX Tebexshop
      • 🔨Installation
      • ⚙️Configuration
      • ⚠️Tebex Settings
      • ⬆️Exports
    • 👁️‍🗨️GFX Interact
      • 🔨Installation
      • ⬆️Exports
    • 🫂GFX Crew
      • 🔨Installation
      • ⚙️Configuration
      • ⬆️Exports
    • 🫂GFX Squad Remake
      • 🔨Installation
      • ⚙️Configuration
      • ⬆️Exports
    • GFX PVP Chat
      • 🔨Installation
      • ⚙️Configuration
      • ⬆️Exports
    • GFX HUD
      • 🔨Installation
      • ⚙️Configuration
    • 🔫GFX Attachment
      • 🔨Installation
      • ⚙️Configuration
    • 💀GFX Deathlog
      • 🔨Installation
      • ⚙️Configuration
    • 🛍️GFX PVP Shop
      • 🔨Installation
      • ⚙️Configuration
    • 🧱GFX Crafting
      • 🔨Installation
      • ⚙️Configuration
    • 🚍GFX Bus Job
      • 🔨Installation
      • ⚙️Configuration
    • 🐔GFX Chicken Farm
      • 🔨Installation
      • ⚙️Configuration
    • 🎁GFX Giveaway
      • 🔨Installation
      • ⚙️Configuration
    • 🛍️GFX Pawnshop
      • 🔨Installation
      • ⚙️Configuration
    • 🪵GFX Lumberjack
      • 🔨Installation
      • ⚙️Configuration
    • 🚙GFX Secondhand Vehicle
      • 🔨Installation
      • ⚙️Configuration
    • 🤖GFX Autopilot
      • 🔨Installation
      • ⚙️Configuration
    • 🗳️GFX Vote
      • 🔨Installation
      • ⚙️Configuration
    • 🟢GFX Safezone
      • 🔨Installation
      • ⚙️Configuration
    • 🎅GFX Christmastruck
      • 🔨Installation
      • ⚙️Configuration
    • 🚔GFX Handcuff
      • 🔨Installation
      • ⚙️Configuration
    • 🚚GFX Trucker Job
      • 🔨Installation
      • ⚙️Configuration
    • 🌱GFX Weed
      • 🔨Installation
      • ⚙️Configuration
    • 🔉GFX DUI Radio
      • 🔨Installation
      • ⚙️Configuration
Powered by GitBook
On this page
  • Configuration
  • Usage Examples
  1. Product Docs
  2. GFX HUD

Configuration

Check the instructions below.

Configuration

Open the Config.lua file to customize the script settings. Below are the configurable options:

General Settings

Setting
Description
Default Value

Framework

Set the framework (esx or qb).

qb

Locale

Language for the HUD system.

en

UseCruiseControl

Enable/disable cruise control.

true

UseSeatBelt

Enable/disable seatbelt system.

true

UseNitro

Enable/disable nitro system.

true

UseStress

Enable/disable stress system.

true

UseMenuKey

Enable/disable the menu shortcut key.

true

MoneyAsItem

Treat money as an in-game item.

false

UseInGameTimer

Display in-game time on the HUD.

true


Item Settings

Setting
Description
Default Value

MoneyItem

Name of the item for money (MoneyAsItem=true).

"cash"

NitroItem

Name of the item for nitro (UseNitro=true).

"nitrous"


Key Bindings

Action
Key
Default Command

Cruise Control

N

N/A

Seat Belt

K

N/A

Nitro Activation

X

N/A

HUD Menu Shortcut

O

"hud"


Vehicle Settings

Setting
Description
Default Value

MinSpeedToThrowFromVehicle

Minimum speed (km/h) at which players fall from cars.

100

NitroForce

Nitro boost strength.

50.0

RemoveNitroOnMilliseconds

Nitro consumption rate (milliseconds).

0.2


Stress System

Setting
Description
Default Value

StressNotify

Enable notifications for stress increases.

true

MinStressToBlur

Stress level threshold for screen blurring.

50

WhitelistedWeaponStress

Weapons that do not cause stress.

(See config)

Stress Triggers

  • Increase Stress

    • on_shoot: Stress increase when shooting.

      • Range: 1–2, Chance: 20%

    • on_fastdrive: Stress increase when driving fast.

      • Range: 1–3, Speed: 110 km/h, Chance: 50%

  • Decrease Stress

    • Actions: Eating, drinking, swimming, running.

      • Range: 5–10


Notifications

Setting
Description

Notify

Displays custom messages to players.

Example Usage:

luaCopy codeTriggerEvent("gfx_hud:sendNotify", "Message text", "fas fa-user", "red", 5000)
  • Message: Text to display.

  • Color: Options are "red", "green", "yellow".

  • Duration: Time in milliseconds.


Usage Examples

Toggle HUD

TriggerEvent("gfx_hud:toggle", true)

Add Stress

TriggerEvent("gfx_hud:stress:add", 50)

Remove Stress

TriggerEvent("gfx_hud:stress:decrease", 50)

Toggle Seat Belt

TriggerEvent("gfx_hud:client:toggleSeatBelt", true)
PreviousInstallationNextGFX Attachment

Last updated 5 months ago

Icon: FontAwesome icon. .

⚙️
Find icons here