π― FX-HUD β
Advanced RedM HUD system with metabolism, XP/Level system, consumables, temperature effects, armour system, and full framework compatibility.
π¦ INSTALLATION β
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 β
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 β
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 β
Config.Language = "en"β’ Defines system language β’ Used for all UI and notifications
π¨ HUD COLOR SYSTEM β
Config.currentHudColorData = {
["#health-core"] = "#ffffff",
["#stamina-core"] = "#ffffff",
}β’ Controls HUD colors β’ Core and progress bars are independent β’ Uses SVG filter system
ποΈ HUD VISIBILITY SYSTEM β
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 β
Config.currentHudPositionData = {
["1920x1080"] = generateHudLayout(...)
}β’ Resolution-based layout system β’ Fully draggable HUD elements β’ Saved per player
π‘οΈ ARMOUR SYSTEM β
Config.ArmourSettings = {
maxArmour = 600,
useArmourClothing = true,
}β’ Adds armour support to HUD β’ Integrates with clothing system β’ Automatically updates HUD
π VOICE SYSTEM β
Config.VoiceChat = "pma-voice"β’ Supports pma-voice / saltychat β’ Displays voice range in HUD β’ Automatically syncs speaking state
π LEVEL & XP SYSTEM β
Config.Levels = {
[1] = 1000,
[2] = 2000,
}β’ Defines XP required per level β’ Unlock system can be based on level β’ Works with server exports
π‘οΈ TEMPERATURE SYSTEM β
Config.Temperature = {
cold = -15,
hot = 45,
}β’ Dynamic temperature system β’ Applies effects based on environment β’ Can affect player stats
π METABOLISM SYSTEM β
Config.HudSettings = {
Hunger = {
decreaseValue = 0.8
}
}β’ Controls hunger, thirst, and stress β’ Affected by movement and temperature β’ Can reduce player health over time
πΊ CONSUMABLE SYSTEM β
Config.Consumables = {
["bread"] = {
hunger = 25,
animation = "sandwich"
}
}β’ Item-based stat system β’ Supports usage limits and metadata β’ Includes animation + prop system
π¬ ANIMATION SYSTEM β
Config.Animations = {
["bandage"] = function(...)
end
}β’ Custom animation per item β’ Uses native animations and props β’ Fully synchronized system
π NOTIFY SYSTEM β
TriggerEvent("fx-hud:client:showNotify", text, time, type)β’ Displays custom notifications β’ type β success / error / warning / info β’ Fully customizable
π‘ EXPORTS (CLIENT) β
exports['fx-hud']:setStatus("hunger",100)β’ Modify player status β’ Supports hunger, thirst, stress, alcohol β’ Includes hideHud / showHud functions
local xp = exports['fx-hud']:getXP()
local level = exports['fx-hud']:getLevel()β’ Returns player XP and level β’ Used for custom systems
π‘ EXPORTS (SERVER) β
exports['fx-hud']:addXP(source,100)β’ Adds XP to player β’ Works with level system
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
