โจ BLN HUD/Metabolism System โ

๐บ Preview โ
๐ฐ Buy Now โ
Introducing BLN HUD/Metabolism System - the most comprehensive and feature-rich HUD solution for RedM! This isn't just another simple status display - it's a complete immersive survival and roleplaying system that transforms how players experience your server.
โจ Why Choose BLN HUD System? โ
- ๐ฏ Complete Metabolism System - Advanced hunger, thirst, and stress mechanics with realistic drain rates
- ๐ก๏ธ Dynamic Temperature System - Weather-aware temperature with clothing modifiers and environmental effects
- ๐ช Core Management - Full player & horse health/stamina cores with golden boost system
- ๐จ In-Game Visual Editor - Drag-and-drop positioning with live preview - no file editing needed!
- ๐ง Advanced Usable Items - 30+ pre-configured items with custom animations and effects
- ๐ Smart Population Display - Real-time server population indicator (OneSync compatible)
- ๐๏ธ Voice Integration - Works with Mumble & SaltyChat with visual indicators
- ๐ซ Native Core Replacement - Completely replaces game's default cores for consistency
- โก Zero Performance Impact - Optimized to 0.00ms resmon usage
- ๐๏ธ Database Persistence - All player stats save automatically to prevent data loss
- ๐คข Poison & Antidote System - Snake bites, poison effects, and curing mechanics
- ๐บ Alcohol & Intoxication - Realistic drunk effects with visual impairment
- ๐ฆ Dirt & Hygiene System - Progressive dirtiness with cleaning mechanics
๐จ Visual Features โ
๐ฑ In-Game HUD Editor โ
- Drag & Drop Positioning - Move any element anywhere on screen
- Live Preview - See changes in real-time as you edit
- Size Adjustment - Individual or global size controls
- Color Customization - Change colors for normal, danger, and gold states
- Visibility Controls - Show/hide any HUD element
- Admin Logo Settings - Custom server logo with URL support
- Reset & Save Functions - Easy configuration management
๐ญ Status Indicators โ
- Player Health & Stamina - Inner/outer cores with visual states
- Horse Health & Stamina - Full mount status display
- Hunger & Thirst - Progressive apple and water drop icons
- Temperature - Dynamic hot/cold visual indicators
- Voice Status - Multi-range voice indicators with colors
- Population Counter - Real-time player count display
- Money Display - Configurable cash counter
- Time & User ID - Server info elements
- Poison Indicators - Visual warnings when poisoned
- Dirt/Hygiene Status - Cleanliness level indicators with fly effects
๐งช Advanced Usable Items System โ
๐ฝ๏ธ Food & Drink Items โ
- 30+ Pre-configured Items - Bread, apple, coffee, stew, beer, wine, and more
- Realistic Animations - Proper eating, drinking, and smoking animations
- Props Support - 3D props appear during consumption
- Nutritional Values - Each item affects hunger, thirst, stress differently
- Temperature Effects - Hot coffee warms you, cold water cools you down
๐ Medical & Consumables โ
- Health Tonics - Boost health cores with golden effects
- Stamina Tonics - Enhance stamina regeneration
- Medicine & Stims - Advanced healing items
- Antidotes - Cure poison and other ailments
- Soap & Hygiene Items - Clean dirt and restore cleanliness
- Alcohol & Spirits - Beer, wine, whiskey with intoxication effects
- Custom Effects - Screen effects and visual feedback
๐ Horse Care Items โ
- Horse Feed - Hay, carrots, and other feed items
- Core Restoration - Restore horse health and stamina
- Proper Animations - Realistic horse feeding animations
- Bonding Benefits - Enhance horse-player relationship
๐ง Developer Features โ
๐ Comprehensive API โ
- 50+ Exports - Control every aspect of the HUD from other resources
- Event System - React to hunger, thirst, stress, and temperature changes
โ๏ธ Advanced Configuration โ
- Granular Settings - Control drain rates, thresholds, and effects
- Custom Animations - Register your own item animations
- Conditional Usage - Job locks, item requirements, and custom conditions
- Return Items - Items that give back containers or byproducts
๐ Performance & Optimization โ
- 0.00ms Resmon - Incredibly optimized with no performance impact
- Smart Caching - Efficient data management and updates
- Minimal Network Usage - Optimized client-server communication
- Database Efficient - Smart saving intervals prevent database spam
- Framework Agnostic - Works with any RedM framework
Usable item Animations โ
There are many animation ready to be used for your usable items:
eat
- Basic eating animationstew
- Stew eating animation with bowl and spooneatCan
- Canned food animationdrink
- Generic drinking animationcoffee
- Coffee drinking animationsmoke
- Cigarette smoking animationcigar
- Cigar smoking animationpipe
- Pipe smoking animationtobacco
- Chewing tobacco animationalcohol
- Alcohol drinking animation (includes drunk effect)medicine
- Medicine drinking animationinject
- Injection animationpomade
- Hair pomade application animationhorsefeed
- Feed horse animationhorseinject
- Horse medicine injection animationhorsebrush
- Horse brushing animationpocketwatch
- Pocket watch animation.bandage
- A bandage animation.
each animation has a pre-configured prop/object modal like Bread, bottle, ...etc. Can be customized using the effects.prop
in your item's settings. Everything explaing in the usables
config file.
Developer API โ
Getting Started โ
-- Client-side usage examples
exports.bln_hud:AddHunger(20) -- Add 20 to hunger
exports.bln_hud:AddThirst(15) -- Add 15 to thirst
exports.bln_hud:ReduceStress(10, "relaxing") -- Reduce stress by 10
-- Server-side usage examples
exports.bln_hud:UseUsableItem(source, "bread") -- Make player use bread
exports.bln_hud:registerUsableItem("custom_food", {
hunger = 20,
thirst = 5,
effects = { enabled = true, animationName = "eat" }
})
Client Exports โ
GetHunger() โ
Returns current hunger value (0-100).
local hunger = exports.bln_hud:GetHunger()
GetThirst() โ
Returns current thirst value (0-100).
local thirst = exports.bln_hud:GetThirst()
SetHunger(value) โ
Set player's hunger value.
Parameters:
value
(number): New hunger value (0-100)
exports.bln_hud:SetHunger(75)
SetThirst(value) โ
Set player's thirst value.
Parameters:
value
(number): New thirst value (0-100)
exports.bln_hud:SetThirst(80)
AddHunger(amount) โ
Add to player's hunger value.
Parameters:
amount
(number): Amount to add
exports.bln_hud:AddHunger(20)
AddThirst(amount) โ
Add to player's thirst value.
Parameters:
amount
(number): Amount to add
exports.bln_hud:AddThirst(15)
IsHungry(threshold) โ
Check if player is below hunger threshold.
Parameters:
threshold
(number, optional): Threshold to check (defaults to Config.Hunger.thresholds.low)
if exports.bln_hud:IsHungry() then
-- Player is hungry
end
IsThirsty(threshold) โ
Check if player is below thirst threshold.
Parameters:
threshold
(number, optional): Threshold to check (defaults to Config.Thirst.thresholds.low)
if exports.bln_hud:IsThirsty() then
-- Player is thirsty
end
GetStressLevel() โ
Returns current stress level (0-100).
local stress = exports.bln_hud:GetStressLevel()
GetComposureLevel() โ
Returns current composure level (inverse of stress, 0-100).
local composure = exports.bln_hud:GetComposureLevel()
SetStressLevel(stressLevel) โ
Set player's stress level.
Parameters:
stressLevel
(number): New stress level (0-100)
exports.bln_hud:SetStressLevel(25)
AddStress(amount, source) โ
Add stress to player.
Parameters:
amount
(number): Amount of stress to addsource
(string, optional): Source/reason for the stress
exports.bln_hud:AddStress(10, "combat")
ReduceStress(amount, source) โ
Reduce player's stress.
Parameters:
amount
(number): Amount of stress to reducesource
(string, optional): Source/reason for the reduction
exports.bln_hud:ReduceStress(15, "meditation")
GetTotalTemperatureModifier() โ
Get current temperature modifier from usable items.
local modifier = exports.bln_hud:GetTotalTemperatureModifier()
UpdatePlayerCoreHealth(amount, ped) โ
Modify player inner health core by increasing or decreasing its value.
Parameters:
amount
(number): Amount to modify (positive to increase, negative to decrease)ped
(entity): Player entity
exports.bln_hud:UpdatePlayerCoreHealth(15, PlayerPedId())
UpdatePlayerCoreStamina(amount, ped) โ
Modify player inner stamina core by increasing or decreasing its value.
Parameters:
amount
(number): Amount to modify (positive to increase, negative to decrease)ped
(entity): Player entity
exports.bln_hud:UpdatePlayerCoreStamina(10, PlayerPedId())
UpdateHorseCoreHealth(amount, horse) โ
Modify horse inner health core by increasing or decreasing its value.
Parameters:
amount
(number): Amount to modify (positive to increase, negative to decrease)horse
(entity): Horse entity
exports.bln_hud:UpdateHorseCoreHealth(20, myHorse)
UpdateHorseCoreStamina(amount, horse) โ
Modify horse inner stamina core by increasing or decreasing its value.
Parameters:
amount
(number): Amount to modify (positive to increase, negative to decrease)horse
(entity): Horse entity
exports.bln_hud:UpdateHorseCoreStamina(15, myHorse)
SetOverpower(statName, coreType, duration, ped) โ
Apply temporary boost to core stats.
Parameters:
statName
(string): 'health' or 'stamina'coreType
(string): 'inner', 'outer', or 'both'duration
(number): Time in millisecondsped
(entity): Entity to apply boost to
-- Apply 30-second stamina boost
exports.bln_hud:SetOverpower('stamina', 'inner', 30000, PlayerPedId())
GetOverpowerSecondsLeft(statName, coreType, ped) โ
Get remaining time for overpower effect.
Parameters:
statName
(string): 'health' or 'stamina'coreType
(string): 'inner', 'outer', or 'both'ped
(entity): Entity to check
local timeLeft = exports.bln_hud:GetOverpowerSecondsLeft('stamina', 'inner', PlayerPedId())
IsOverpowered(statName, coreType, ped) โ
Check if entity has active overpower effect.
Parameters:
statName
(string): 'health' or 'stamina'coreType
(string): 'inner', 'outer', or 'both'ped
(entity): Entity to check
local isBoosted = exports.bln_hud:IsOverpowered('stamina', 'inner', PlayerPedId())
PlayerWash() โ
Reset player's dirtiness state, makes the player clean.
exports.bln_hud:PlayerWash()
GetPlayerDirtPercentage() โ
Returns current player dirt percentage (0-100).
local dirtLevel = exports.bln_hud:GetPlayerDirtPercentage()
GetMountDirtPercentage() โ
Returns current mount dirt percentage (0-100).
local mountDirtLevel = exports.bln_hud:GetMountDirtPercentage()
IsPlayerDirty() โ
Check if player is currently dirty.
local isDirty = exports.bln_hud:IsPlayerDirty()
IsMountDirty() โ
Check if mount is currently dirty.
local isMountDirty = exports.bln_hud:IsMountDirty()
IsPoisoned() โ
Check if player is currently poisoned.
local poisoned = exports.bln_hud:IsPoisoned()
if poisoned then
print("Player is poisoned!")
end
CurePoisoning() โ
Cure player's poisoning status.
exports.bln_hud:CurePoisoning()
Server Exports โ
UseUsableItem(source, itemName, itemData) โ
Use a usable item.
Parameters:
source
(number): Player server IDitemName
(string): Item name to useitemData
(table, optional): Item configuration data
exports.bln_hud:UseUsableItem(source, 'bread')
registerUsableItem(itemName, itemConfig) โ
Register a new usable item.
Parameters:
itemName
(string): Item nameitemConfig
(table): Item configuration
exports.bln_hud:registerUsableItem('my_custom_item', {
hunger = 15,
thirst = 5,
stress = -10,
player = {
health = { 5, 0 },
},
effects = {
enabled = true,
animationName = "eat",
prop = "p_bread05x"
}
})
isPlayerUsingItem(source) โ
Check if player is currently using an item.
Parameters:
source
(number): Player server ID
local isUsing = exports.bln_hud:isPlayerUsingItem(source)
Client Events โ
bln_hud:c:hungerChange โ
Triggered when hunger value changes.
Parameters:
hunger
(number): New hunger value
AddEventHandler('bln_hud:c:hungerChange', function(hunger)
print("Hunger changed to: " .. hunger)
end)
bln_hud:c:thirstChange โ
Triggered when thirst value changes.
Parameters:
thirst
(number): New thirst value
AddEventHandler('bln_hud:c:thirstChange', function(thirst)
print("Thirst changed to: " .. thirst)
end)
bln_hud:c:stressChange โ
Triggered when stress/composure level changes.
Parameters:
composure
(number): New composure value (0-100)sources
(table): Recent stress sources
AddEventHandler('bln_hud:c:stressChange', function(composure, sources)
local stress = 100 - composure
print("Stress level is now: " .. stress)
end)
bln_hud:c:tempChange โ
Triggered when temperature changes.
Parameters:
tempData
(string): JSON string with temperature data
AddEventHandler('bln_hud:c:tempChange', function(tempData)
local data = json.decode(tempData)
print("Temperature is now: " .. data.valueWithFormat)
end)
bln_hud:c:useItem โ
Triggered when an item is being used.
Parameters:
itemName
(string): Name of the itemitemData
(table): Configuration of the item
AddEventHandler('bln_hud:c:useItem', function(itemName, itemData)
print("Using item: " .. itemName)
end)
bln_hud:c:usableItemUsed โ
Triggered after an item has been used.
Parameters:
itemName
(string): Name of the itemitemData
(table): Configuration of the item
AddEventHandler('bln_hud:c:usableItemUsed', function(itemName, itemData)
print("Item used: " .. itemName)
end)
bln_hud:c:getTemperature โ
Request to get temperature (uses callback).
Parameters:
callback
(function): Function to receive temperature data
TriggerEvent('bln_hud:c:getTemperature', function(temp)
print("Current temperature: " .. temp.valueWithFormat)
end)
bln_hud:c:setTemperature โ
Set temperature value.
Parameters:
tempValue
(number): New temperature value
TriggerEvent('bln_hud:c:setTemperature', 25)
bln_hud:UseAntidote โ
Cure for snake poison.
TriggerEvent('bln_hud:UseAntidote')
Server Events โ
bln_hud:s:onItemUsed โ
Triggered after an item has been used.
Parameters:
source
(number): Player ID who used the itemitemName
(string): Name of the itemitemData
(table): Configuration of the item
AddEventHandler('bln_hud:s:onItemUsed', function(source, itemName, itemData)
print("Player " .. source .. " used item: " .. itemName)
end)
Dependencies โ
- oxmysql: Database interaction
- bln_notify: Notification system
- bln_lib: Utility library
Installation โ
- Ensure all dependencies are installed
- Place the bln_hud folder in your resources directory
- Add
ensure bln_hud
to your server.cfg - Configure the resource in the configs folder
- Start your server
FAQs โ
What does the defaults.cfg.lua
file do? โ
The defaults.cfg.lua
file contains the default HUD settings that are applied to new players joining your server for the first time. This includes:
- Element positions and sizes
- Color settings
- Visibility toggles
- Layout preferences
These default settings are only applied to players who have never joined before. For existing players, their personalized HUD settings are retrieved from the database, preserving their customizations between sessions.
How do I apply my HUD settings to all players? โ
After customizing your HUD layout in the editor, you can copy the settings to apply them for all players:
- Open the HUD editor in-game
- Configure your desired layout (position, size, colors, visibility)
- Look for the "Copy Settings" button in the editor and click to copy them.
- Stop the resource
- Go to your db, then
bln_hud
table and delete all characters' saved data. - Go to your
defaults.cfg.lua
file and replace the existing settings with the copied settings. - Restart the resource.
This will make your customized HUD layout the default for all new players joining the server.
If you dont want your players to modify their hud settings in-game and keep your settings applied, you can restrict their access to the editor using the config
Config.Commands
.
What are the custom actions in usable items? โ
For each usable item we have custom actions, you can use them to call your custom animation or any logic you need there. This is useful to let you make anything you need with the usable item, endless possibilities!
How do I add custom animations for items? โ
Within item configuration, Using the custom actions.
How does the temperature system work? โ
The temperature system factors in:
- World location - Different regions have different base temperatures
- Time of day - Colder at night, warmer during day
- Weather - Snow, rain, and other conditions affect temperature
- Clothing - Proper attire provides protection from temperature extremes
- Item effects - Tonics and food can provide temporary warming/cooling
Can I integrate the HUD with other resources? โ
YES. The resource provides exports and events for integration:
-- From another resource, register items that affect HUD stats
exports.bln_hud:registerUsableItem('special_food', {
hunger = 40,
thirst = 10
})
-- React to hunger changes
AddEventHandler('bln_hud:c:hungerChange', function(hunger)
if hunger < 20 then
-- Apply custom effect when player is very hungry
end
end)
-- Modify player status from another resource
exports.bln_hud:AddHunger(20)
exports.bln_hud:ReduceStress(15, "relaxing")