Skip to content

🎯 FX-HUD ​

Advanced RedM HUD system with metabolism, XP/Level system, consumables, temperature effects, armour system, and full framework compatibility.


πŸ“¦ INSTALLATION ​

bash
ensure fx-hud

β€’ Place the script inside resources/fx-hud β€’ Add ensure fx-hud to your server.cfg β€’ Restart your server β€’ Make sure oxmysql is started before this script


βš™οΈ DEPENDENCIES ​

text
oxmysql (Required)

β€’ Used for database communication β€’ Script will not work without it β€’ You can use tools like HeidiSQL or phpMyAdmin to manage your database


πŸ—„οΈ SQL INSTALLATION ​

sql
CREATE TABLE IF NOT EXISTS `fx_hud` (
  `charid` varchar(50),
  `health` int DEFAULT 1,
  `stamina` int DEFAULT 1,
  `corehealth` int DEFAULT 1,
  `corestamina` int DEFAULT 1,
  `hunger` int DEFAULT 1,
  `thirst` int DEFAULT 1,
  `stress` int DEFAULT 1,
  `armour` int DEFAULT 0,
  `xp` int DEFAULT 1,
  `level` int DEFAULT 1,
  `settings` longtext DEFAULT '{}'
);

β€’ Stores all player HUD data β€’ Uses charid as unique identifier β€’ Required for XP, level, and status system


βš™οΈ BASIC CONFIG ​

lua
Config.Language = "en"

β€’ Defines system language β€’ Used for all UI and notifications


🎨 HUD COLOR SYSTEM ​

lua
Config.currentHudColorData = {
    ["#health-core"] = "#ffffff",
    ["#stamina-core"] = "#ffffff",
}

β€’ Controls HUD colors β€’ Core and progress bars are independent β€’ Uses SVG filter system


πŸ‘οΈ HUD VISIBILITY SYSTEM ​

lua
Config.HideHuds = {
    cash = false,
    gold = false,
    logo = false,
    hour = false,
    id = false,
    locations = false,

    level = false,
    dirty = false,
    stress = false,
    pvp = false,
    armour = false,
    alcohol = false,
    temp = false,
    onesync = false,
}

β€’ Allows you to hide specific HUD elements β€’ Set value to true β†’ element will be hidden β€’ Set value to false β†’ element will be visible

β€’ STATS β†’ cash, gold, logo, hour, id, locations β€’ HUD β†’ level, dirty, stress, pvp, armour, alcohol, temp, onesync

β€’ Works instantly without restarting HUD system β€’ Useful for minimal UI setups or server-specific customization


πŸ“ HUD POSITION SYSTEM ​

lua
Config.currentHudPositionData = {
    ["1920x1080"] = generateHudLayout(...)
}

β€’ Resolution-based layout system β€’ Fully draggable HUD elements β€’ Saved per player


πŸ›‘οΈ ARMOUR SYSTEM ​

lua
Config.ArmourSettings = {
    maxArmour = 600,
    useArmourClothing = true,
}

β€’ Adds armour support to HUD β€’ Integrates with clothing system β€’ Automatically updates HUD


πŸ”Š VOICE SYSTEM ​

lua
Config.VoiceChat = "pma-voice"

β€’ Supports pma-voice / saltychat β€’ Displays voice range in HUD β€’ Automatically syncs speaking state


πŸ“Š LEVEL & XP SYSTEM ​

lua
Config.Levels = {
    [1] = 1000,
    [2] = 2000,
}

β€’ Defines XP required per level β€’ Unlock system can be based on level β€’ Works with server exports


🌑️ TEMPERATURE SYSTEM ​

lua
Config.Temperature = {
    cold = -15,
    hot = 45,
}

β€’ Dynamic temperature system β€’ Applies effects based on environment β€’ Can affect player stats


πŸ— METABOLISM SYSTEM ​

lua
Config.HudSettings = {
    Hunger = {
        decreaseValue = 0.8
    }
}

β€’ Controls hunger, thirst, and stress β€’ Affected by movement and temperature β€’ Can reduce player health over time


🍺 CONSUMABLE SYSTEM ​

lua
Config.Consumables = {
    ["bread"] = {
        hunger = 25,
        animation = "sandwich"
    }
}

β€’ Item-based stat system β€’ Supports usage limits and metadata β€’ Includes animation + prop system


🎬 ANIMATION SYSTEM ​

lua
Config.Animations = {
    ["bandage"] = function(...)
    end
}

β€’ Custom animation per item β€’ Uses native animations and props β€’ Fully synchronized system


πŸ”” NOTIFY SYSTEM ​

lua
TriggerEvent("fx-hud:client:showNotify", text, time, type)

β€’ Displays custom notifications β€’ type β†’ success / error / warning / info β€’ Fully customizable


πŸ“‘ EXPORTS (CLIENT) ​

lua
exports['fx-hud']:setStatus("hunger",100)

β€’ Modify player status β€’ Supports hunger, thirst, stress, alcohol β€’ Includes hideHud / showHud functions


lua
local xp = exports['fx-hud']:getXP()
local level = exports['fx-hud']:getLevel()

β€’ Returns player XP and level β€’ Used for custom systems


πŸ“‘ EXPORTS (SERVER) ​

lua
exports['fx-hud']:addXP(source,100)

β€’ Adds XP to player β€’ Works with level system


lua
exports['fx-hud']:getLevel(source,function(level)
    print(level)
end)

β€’ Async level fetch β€’ Useful for progression systems


⚠️ IMPORTANT NOTES ​

β€’ oxmysql must be running β€’ Database table must exist β€’ Core values range: 0–600 β€’ Hunger / Thirst range: 0–100 β€’ Armour max: 600


🚨 COMMON MISTAKES ​

β€’ HUD not visible β†’ default UI not disabled β€’ Hunger not updating β†’ missing framework integration β€’ Animations not working β†’ wrong consumable config β€’ Voice not showing β†’ incorrect voice system setting


🏁 SUMMARY ​

FX-HUD provides:

β€’ Full metabolism system β€’ Advanced HUD customization β€’ XP / Level system β€’ Consumable system β€’ Temperature system β€’ Armour integration β€’ Framework compatibility


Β© Fixitfy Development

⚑ Premium RedM scripts crafted with performance & quality in mind.