The Lab
The Lab Hud · RedEM:RP

Install The Lab Hud on RedEM:RP

Installing on RedEM:RP takes two parts: the usual drop-in install, then an optional edit to show hunger and thirst, which RedEM:RP does not expose the same way on every build.

Estimated time: 20 minRedEM:RP

Before you start

  • A RedEM:RP server with redem_roleplay
  • The name and API of the resource that holds hunger and thirst on your server, if you want those bars
  • The Lab Hud downloaded from the Cfx.re Portal

Install steps

  1. Step 1: Download the resource from the Cfx.re Portal

    Sign in to the Cfx.re portal with the account you used at checkout, open your granted assets and download tlb-hud. Extract the archive: you get a single tlb-hud folder. Keep the folder name as it is.

  2. Step 2: Add it below redem_roleplay

    The HUD detects RedEM:RP from a started redem_roleplay.

    ensure redem_roleplay
    # ...your other RedEM:RP resources
    
    ensure tlb-hud
  3. Step 3: Connect hunger and thirst (optional)

    Edit client/bridge/frameworks/redemrp.lua. Turn metabolism on and return values from 0 to 100. The calls below are placeholders: replace them with the exports or state your status resource actually provides.

    ClientAdapters.redemrp = {
    	resource = 'redem_roleplay',
    	metabolism = true,
    
    	getHunger = function()
    		return -- read hunger from your status resource (0..100)
    	end,
    	getThirst = function()
    		return -- read thirst from your status resource (0..100)
    	end,
    
    	setNativeHudVisible = function() end,
    
    	onLoaded = function(cb)
    		RegisterNetEvent('redemrp:playerLoaded', cb)
    	end,
    }
  4. Step 4: Turn off your current HUD

    Stop the HUD resource you use today so the two do not overlap.

  5. Step 5: Test before going live

    This adapter has not been tested on a production RedEM:RP server. Join a test server, load a character and compare the money and character ID with your database.

Troubleshooting

Money shows 0

Your RedEM:RP build may name the field differently. Adjust getCharacterInfos in bridge/server/frameworks/redemrp.lua.

Bars disappear after editing the adapter

A Lua error in the adapter stops it. Check the F8 console and make sure both functions return a number or nil.

FAQ

Will my adapter edits survive updates?

Keep a copy of your edited file. Updates may ship a new version of the adapter, which you can merge with yours.

Is the player icon male or female?

The RedEM:RP adapter does not read the character's sex and defaults to male. Return it from the server adapter if your build has it.