Configuration Helps
SS-Metabolism Setup & Configuration Guide
SS-Metabolism is a RedM metabolism HUD script with a custom NUI interface. It manages hunger, thirst, stress, dirtiness, reputation, health and stamina cores, horse stats, temperature, housing indicators, voice status, clock display, HUD editing, and usable item effects.
This guide is written for server owners who want to install, configure, and test the script safely, even without deep Lua knowledge.
Features Overview
SS-Metabolism includes:
Custom Red Dead Redemption style HUD.
Hunger, thirst, stress, dirtiness, and reputation tracking.
Player health and stamina inner/outer cores.
Horse health, stamina, hunger, and thirst HUD support.
Temperature and outside degrees display.
Housing icon support through exports.
Voice/microphone status and pma-voice range display.
Analog or digital in-game clock.
HUD editor through
/sethud.HUD toggle through
/shud.Saved HUD positions, scale, and hidden icons.
Usable food, drink, alcohol, drug, and medicine item support through
SS-Core.
Dependencies
Required
SS-Coreoxmysql
Used By Default
RedM NUI
vorp:TipBottom, used for notifications.
Optional / External Behavior
pma-voicefor microphone talking status and voice range.Housing scripts can call the housing exports.
Stable or horse scripts can send horse metabolism data.
Medic scripts can pause metabolism while the player is hospitalized.
Installation
1. Add The Resource
Place the script in your server resources folder:
Keep the resource folder name exactly:
2. Import SQL
Import:
The table is:
It stores character ID, saved metabolism values, HUD positions, HUD scale, and hidden HUD icons.
If you already had the table before this HUD editor version, run this once:
This gives enough space for positions, scale, and hidden icon settings.
3. Start Order
Recommended start order:
If you use pma-voice, make sure it is also started on your server.
4. Restart The Server
After importing SQL and checking start order, restart the server and test the HUD in-game.
Main Files
fxmanifest.lua: Resource manifest.config.lua: Main server/client configuration.config.js: UI thresholds and core max values.c/c.lua: Client logic.s/s.lua: Server logic.UI/UI.html: NUI page.UI/css/css.css: NUI styling.UI/js/js.js: NUI logic.EXTRA/ss_metabolism.sql: Database table.
First Configuration
Open:
The file is grouped into clear sections. Change values, not logic.
General Settings
Dev: Usetruewhile testing. Usefalseon live servers.WaitBeforeLoad: Seconds before HUD loads after character selection.CommandSetHud: Command used to edit the HUD.ToggleHud: Command used to show/hide the HUD.Refresh: Main metabolism tick in seconds.SaveRefresh: Minimum seconds between database saves.ClockMode:"analog"or"digital".
UI Thresholds
Open:
Example:
MaxHealthandMaxStamina: Max outer core shown by the UI.Hungry,Thirsty,Health, andStamina: Blink when below the configured value.StressandDirtiness: Blink when above the configured value.Horse values follow the same rule for horse HUD icons.
HUD Editor
Players can use:
This opens HUD edit mode.
In edit mode players can:
Drag HUD icons.
Change HUD scale with
+and-.Hide/show every HUD icon with switches.
Press
ESCto save and close.
Saved settings are stored in the opt column in ss_metabolism.
If no saved position exists, the HUD uses the default bottom-centered layout.
HUD Toggle
Players can use:
This hides or shows the full HUD.
Initial Player Values
These values are used when a character has no saved metabolism data yet.
Player Health & Stamina Cores
If enabled, the script shows custom player health and stamina cores.
The UI uses:
UI/img/healthUI/img/staminaUI/img/meter
The outer core respects MaxHealth and MaxStamina from config.js.
Horse HUD
UseHorseHealthStamina: Shows horse health/stamina cores.HorseStats: Shows horse hunger/thirst.HorseMetabolism: Values removed everyRefreshtick.
Horse stats appear when the player is mounted or when external horse data is sent to the script.
Temperature
First number: Minimum safe temperature.
Second number: Maximum safe temperature.
Clothing can add warmth:
If the final player temperature is too low or too high, the script can affect hunger, thirst, and stress.
Metabolism Decrease
Thirsty: Removed from thirst.Hungry: Removed from hunger.Stress: Added to stress. Negative values remove stress.
These values apply every Config.Refresh tick.
Low Hunger / Low Thirst Effects
If hunger or thirst goes below MetabolismMin, the script can damage health, reduce stamina, and increase stress.
If the player is hospitalized through the medic state, metabolism decrease is paused.
Stress Effects
High stress can make stamina drain faster and can trigger ragdoll behavior if enabled.
Reputation
Reputation is stored internally from 0 to 1000.
The export:
returns a reputation level from 0 to 10.
Very low reputation can make NPCs walk away, run away, or become aggressive depending on config.
Housing HUD
The script can show a housing icon and a small number badge.
External scripts can call:
Modes:
0: White/default.1: Green.2: Red.
Example:
To change the icon:
Voice / Microphone HUD
The microphone HUD uses RedM mumble talking status:
Voice range is read from:
This works with pma-voice style proximity state.
Clock HUD
The HUD supports:
or:
The clock updates only when Lua sends a sync to NUI. It does not run its own JavaScript time loop.
Usable Goods / Items
Items are configured in:
Example:
Important fields:
Label: Item label used in messages.Mode: Animation/action type.Prop: Prop model attached during use. Usefalseto disable.Metabolism.hunger: Adds hunger.Metabolism.thirsty: Adds thirst.Metabolism.stress: Adds stress. Use a negative value to remove stress.Metabolism.health: Heals player orfalse.Metabolism.stamina: Restores stamina orfalse.Times: How many uses/sips/bites before finished.Alcohol: Drunkness amount orfalse.Effect: PostFX effect table orfalse.OverPowerStamina: Stamina core overpower duration/value orfalse.OverPowerHealth: Health core overpower duration/value orfalse.
Supported modes:
EATDRINKSMOKESYRINGEBOWLBOTTLEBANDAGE
Add A New Item
Copy an existing item and change only the values:
The item name must also exist in your inventory/items system.
Exports
Stress
Thirst
Hunger
Reputation
Horse Hunger
Horse Thirst
Housing
Events
NUI Focus
Disease / Custom Health Icon
The image must exist in:
Use this to restore the default health icon:
Horse Data
External horse scripts can send:
Where stats can include:
Medical Cabinet / Hospital State
The script listens for:
When enabled, metabolism decrease/damage is paused.
Database
Table:
Columns:
charid: Character ID.info: Saved metabolism data.opt: Saved HUD settings. UseTEXT, because positions, scale, and hidden icons can be longer than 500 characters.
HUD settings can contain:
Troubleshooting
HUD Does Not Show
Check:
Resource name is
SS-Metabolism.SS-Corestarts before this resource.SQL table exists.
Character selected event is being triggered.
Dev = trueif testing without normal character selection.
HUD Icons Are Top-left
This should no longer happen. If a player has old or broken saved settings, open:
Move or save again with ESC.
Item Does Not Work
Check:
Item exists in your inventory/core.
Item name matches
Config.Goods.SS-Coreusable registration is working.Resource started after
SS-Core.
Microphone Icon Does Not Turn Green
Check:
pma-voice/mumble is running.
MumbleIsPlayerTalkingexists in your RedM build.LocalPlayer.state.proximityexists for voice range.
Clock Is Not Moving Every Second
This is intentional. The clock updates only on sync from Lua for better fidelity with server time.
Stress Or Dirtiness Looks Full
This is intended when the value is high:
Higher value = fuller meter.
Lower value = emptier meter.
Database Is Not Saving
Check:
oxmysqlis started.ss_metabolismtable exists.charidis valid.SaveRefreshis not too high for your test.
Recommended Live Checklist
Before going live, confirm:
SQL has been imported.
oxmysqlstarts first.SS-Corestarts before this script.Resource folder name is
SS-Metabolism.Dev = false.Refreshis set to a sane value, recommended10-20+.SaveRefreshis set to a sane value, recommended60+.Item names are checked in
Config.Goods./sethudworks./shudworks.Hunger/thirst decrease works.
Stress effects work.
Horse HUD works if enabled.
pma-voice microphone works if used.
Last updated