โจ 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.
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")
GetTemperature() โ
Returns current temperature information.
local temp = exports.bln_hud:GetTemperature()
-- Returns: {value = 25, valueWithFormat = "25ยฐC"}
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())
RegisterCustomAnimation(name, function) โ
Register a custom animation for usable items.
Parameters:
name
(string): Animation namefunction
(function): Animation function that receives callback and optional prop model
exports.bln_hud:RegisterCustomAnimation('my_custom_anim', function(callback, propModel)
local ped = PlayerPedId()
TaskStartScenarioInPlace(ped, GetHashKey('WORLD_HUMAN_DRINK_CHAMPAGNE'), 5000, true, false, false, false)
Citizen.Wait(5000)
ClearPedTasks(ped)
if callback then callback() end
end)
Player Wash โ
Reset player's dirtiness state, Makes the player clean.
exports.bln_hud:PlayerWash()
IsPoisoned() โ
Check if player is currently poisoned.
local poisoned = exports.bln_hud:IsPoisoned()
if poisoned then
print("Player is poisoned!")
end
GetPoisonLevel() โ
Returns current poison level (0-100).
local level = exports.bln_hud:GetPoisonLevel()
print("Poison level: " .. level)
CurePoisoning() โ
Cure player's poisoning status.
exports.bln_hud:CurePoisoning()
Server Exports โ
GetHungerThirst(source) โ
Get player's hunger and thirst values.
Parameters:
source
(number): Player server ID
local stats = exports.bln_hud:GetHungerThirst(source)
-- Returns: {hunger = 75, thirst = 80}
SetHungerThirst(source, hunger, thirst) โ
Set player's hunger and thirst values.
Parameters:
source
(number): Player server IDhunger
(number): New hunger value (0-100)thirst
(number): New thirst value (0-100)
exports.bln_hud:SetHungerThirst(source, 80, 75)
SaveHungerThirst(source) โ
Force save player's hunger and thirst to database.
Parameters:
source
(number): Player server ID
exports.bln_hud:SaveHungerThirst(source)
UseUsableItem(source, itemName) โ
Use a usable item.
Parameters:
source
(number): Player server IDitemName
(string): Item name to use
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"
}
})
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
FAQ โ
Can I change the default HUD UI settings? โ
YES. Edit defaults.cfg.lua
to adjust core HUD settings:
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? โ
TWO WAYS:
Within item configuration: Using custom actions.
Register custom animation via export:
exports.bln_hud:RegisterCustomAnimation('drink_whiskey', function(callback, propModel)
-- animation logic here
end)
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")
How do I show/hide specific HUD elements? โ
From defaults.cfg.lua
, or in game using the hud editor.