The Lab

The Lab HUD

A minimal, clean HUD for RedM: health, stamina, hunger, thirst, microphone level, money and player ID.

Works with VORP, RSG, RedEM:RP and standalone (auto-detected). Health, stamina and the mic come from the game itself; money, id and metabolism come from your framework through small, open adapters.


Requirements

  • A voice resource for the mic bar (pma-voice or saltychat), optional.
  • For money / id and hunger / thirst, one of: VORP (vorp_core + vorp_metabolism), RSG (rsg-core), RedEM:RP (redem_roleplay), or nothing (standalone).

Installation

  1. Drop tlb-hud into your resources folder.
  2. Add it to your server.cfg, after your framework:
   ensure tlb-hud
   

The framework is detected automatically. To force one, set Config.Framework in shared/config.lua to 'vorp', 'rsg', 'redemrp' or 'standalone'.


What shows per framework

  • Health, stamina, mic: always (native).
  • Money: hidden in standalone (no economy).
  • Hunger / thirst: shown for VORP (vorp_metabolism) and RSG; hidden for standalone and, by default, RedEM:RP (fill its adapter to enable).

Hide the native UI

So the two HUDs do not overlap:

  • VORP: in vorp_core/config/config.lua, set HideUi, HideGold, HideMoney, HideLevel, HideID, HideTokens, HidePVP to true. The vorp_metabolism hud is hidden automatically while the HUD is open.
  • RSG and others: disable that framework's own hud resource.

Commands

  • /hud — toggle the whole HUD.
  • /hudminimap — toggle the minimap (if a key is bound in shared/config.lua).

Frameworks (open files)

Each adapter is left open (escrow) so you can tune or add your own:

  • Server (money / id / sex): bridge/server/frameworks/<name>.lua, function getCharacterInfos(src).
  • Client (hunger / thirst): client/bridge/frameworks/<name>.lua, functions getHunger() / getThirst() returning 0..100.
  • Voice: client/bridge/voice.lua.

Copy standalone.lua on either side, fill the functions, give the server adapter a resource field for auto-detection, and pick it with Config.Framework. Tested on VORP; test the RSG and RedEM:RP adapters on your own server before going live.


Configuration

More options in shared/config.lua: refresh delays, native-UI hiding, voice ranges, metabolism max (VORP).