The Lab

The Lab Devtools

In-game developer tools for RedM. A dependency-free admin panel (no ox_lib) with noclip, raycasting, spawning, weather and time control, player debugging, performance monitoring and a fully rebindable key system.


Features

  • Menu with 10 tabs (Overview, World, Debug, Player, Weapons, Horse, Resources, Performance, Tools, Keybinds), opened with a keybind or a command.
  • Command palette: press Ctrl+K in the menu to jump to any tab or run a quick action (toggle noclip, toggle raycast, copy position, reset keybinds, close menu).
  • Noclip: txAdmin-style free camera (scripted cam) that releases cleanly on RedM. Mouse look, WASD movement, Shift to speed up.
  • Raycast: aim ray with impact marker, entity outline and pickup light on props, and a real-time HUD (bottom-right) showing the targeted entity's spawn name, type, distance and coordinates.
  • Weather and time: all 22 RDR2 weather types with readable labels, freeze weather or time, live clock override.
  • World: spawn props and peds (17k+ models), nearby entity browser with inspector (freeze, visibility, collision, invincible, teleport, delete), zone visualizer.
  • Horse: current mount health and stamina, heal, spawn horses by breed.
  • Player: ped model, weapon (with readable names), vitals, position, camera, vehicle and mount info.
  • Performance: FPS, frame time, entity pool counts, frame-time spike log.
  • Resources: resource list, NUI monitor.
  • Tools: position converter, hash finder, model finder, coordinate history, mouse cursor toggle.
  • Keybinds: every action is rebindable in game, persisted per player via KVP, with conflict detection.
  • Localization: the entire UI (menu and client notifications) is translatable. English by default, French included.

Installation

  1. Copy the tlb-devtools folder into your server's resources directory.
  2. Add it to your server.cfg:
   ensure tlb-devtools
   
  1. Restart the server (or restart tlb-devtools).

Configuration

Edit shared/config.lua:

SettingDefaultDescription
Config.language'en'UI language. Available: 'en', 'fr'.
Config.usePermissionfalseEnable ACE permission checks.
Config.permission{ 'group.admin' }ACE groups allowed to use the tools.
Config.openMenuKey'F3'Key to open and close the menu.
Config.toggleNoclipKey'F5'Noclip toggle.
Config.toggleRaycastKey'F6'Raycast toggle.
Config.teleportMarkerKey'F10'Teleport to the map waypoint.
Config.gobackKey''Return to your previous location.
Config.raycast—Ray distance, line and outline colors.
Config.zone—Zone visualizer color.

All keybinds can also be changed at runtime from the Keybinds tab (persisted per player via KVP).

Permissions (ACE)

If you enable Config.usePermission, grant access with, for example:

add_ace group.admin command allow
add_ace group.admin "command.tlb-devtools" allow

Commands

  • tlb-devtools: opens and closes the devtools menu.
  • goback: teleports you back to your previous location.

Localization

Add your own language in shared/locale.lua (client notifications), then set Config.language.


Troubleshooting

  • Menu key not working after noclip: RedM can drop key-release events while player control is disabled; the keybind listener uses manual edge detection on the raw key state, so releasing and pressing the key again re-arms it.
  • Weapon shows a hash: the weapon is not in shared/data/weapons.lua; add it there to get a readable name.
  • NUI not loading: make sure app/ exists (run the web build) and ui_page 'app/index.html' matches the built output.