The Lab
HUD

RedM HUD script

A HUD sits on screen for every player, all session long. It has to show the right numbers for your framework, stay out of the way of the game's own icons, and cost next to nothing in frame time. Here is what to check before you install one, and how The Lab Hud handles each point.

Our scripts

Updated

Minimal multi-framework HUD for RedM

A minimal, multi-framework HUD for RedM (VORP, RSG, RedEM:RP, standalone): health, stamina, hunger, thirst, mic level, money and player ID. Elements with no data source are hidden automatically.

  • VORP
  • RSG
  • RedEM:RP
  • Standalone

By framework

What to look for in a RedM HUD script

  1. Data that matches your framework

    Health and stamina come from the game, but money, character ID, hunger and thirst live in your framework. A HUD should read them from the framework you run, not assume one.

  2. No empty bars

    If your server has no economy or no metabolism, a hunger bar stuck at zero looks broken. Elements without a data source should disappear on their own.

  3. No overlap with native icons

    RedM draws its own health, stamina and Dead Eye cores, and most frameworks ship their own HUD as well. A good HUD can hide the native cores and tells you how to turn off the framework one.

  4. Voice level that follows your voice resource

    A mic indicator is only useful if it reflects the range players actually selected, whatever voice resource the server uses.

  5. Reasonable refresh rates

    Fast values (health, stamina, talking) need about a second; money and character ID can refresh far less often. Separate intervals keep server calls low.

  6. Open, editable adapters

    Frameworks change between versions. Being able to edit the adapter yourself saves you from waiting on an update when a framework renames a field.

  7. Exports for other scripts

    Cutscenes, photo modes and menus often need to hide the HUD. Exports to toggle it and read its state avoid hacks.

How The Lab Hud covers these points

  • Four data sources

    Adapters for VORP (vorp_core + vorp_metabolism), RSG (rsg-core), RedEM:RP (redem_roleplay) and standalone, picked automatically or forced with Config.Framework.

  • Automatic hiding

    Money is hidden in standalone, hunger and thirst are hidden when the framework has no metabolism source (standalone, and RedEM:RP until you fill its adapter).

  • Native cores off

    Config.HidePlayerHealthNative, HidePlayerStaminaNative and HidePlayerDeadEyeNative hide the built-in cores. With VORP, the vorp_metabolism HUD is hidden while The Lab Hud is open.

  • Voice

    Detects pma-voice or saltychat (order set in Config.VoiceResourcesPriority) and maps the range to a level with Config.VoiceRanges. With neither, it falls back to the native proximity range.

  • Two refresh intervals

    Config.UpdateDelay (1000 ms by default) for fast values and Config.CharacterInfoUpdateDelay (5000 ms) for server-side character data.

  • Open files

    shared/config.lua, the server and client framework adapters and client/bridge/voice.lua are excluded from escrow.

  • Exports

    ToggleHud, ToggleMinimap, IsHudVisible and GetHudData, plus the /hud command.

Related guides

FAQ

Does the HUD replace my framework's HUD?

It is meant to. With VORP you set the Hide* options in vorp_core/config/config.lua to true; with RSG and others you stop that framework's HUD resource.

What shows on a standalone server?

Health, stamina, mic level and the player's server ID. Money, hunger and thirst are hidden because there is nothing to read them from.

Can I bind a key to toggle the minimap?

Yes. Set Config.MinimapKeybind to a key such as 'F8'; it registers a hudminimap command bound to that key. Leave it nil to skip it.

Is a voice resource required?

No. Without pma-voice or saltychat, the mic bar uses the native voice proximity and still lights up when the player talks.

Can I add another framework?

Yes. Copy standalone.lua on the server and client side, fill in the functions, give the server adapter a resource field for auto-detection and select it with Config.Framework.