BeamTrainer

LuaGame moddingToolingUI designReverse engineering

A GTA5-style trainer menu for BeamNG.drive: a full keyboard/mouse-driven in-game window that mirrors the game's gameplay radial menu, adds a curated set of sandbox tools, and layers on a vehicle spawner, teleport slots, and favorites.

BeamNG.drive’s built-in gameplay radial menu is genuinely controversial in the community: a stick-driven wheel you pull up and drill into layer by layer, one entry at a time, to reach vehicle actions, world options, and sandbox tools. A lot of players find the UX slow and awkward for anything they reach for often, and it’s a recurring complaint on the forums.

I wanted something closer to the GTA5-style trainers PC modders build for other games, one window, a flat navigable list, everything reachable in a couple of keystrokes, and I figured it would solve most of that friction upfront.

Two VMs, one menu

The interesting constraint on this project wasn’t the UI, it was BeamNG’s modding architecture. Game logic is split across two separate Lua VMs.

A “GE” (game engine) side owns the world, the UI, and vehicle spawning. A “vehicle” side runs once per car and is the only place physics state actually lives.

Game sideOwns the whole menu window: navigation, vehicle spawning, teleport slots, and the live mirror of the game's own radial menu.

Vehicle sideThe physics sandbox tools, like extra power, grip, god mode and infinite fuel, written from scratch. They can only run inside each car.

So the menu can’t just flip a setting. It has to send a message into the car (“set power to 2.5x”) and wait to hear back. I made the car report its full state after every change, and on load or reset, so the menu always shows what’s really active rather than what it last asked for.

Vehicle swaps and resets re-apply the desired state automatically, so active tools survive a crash or a respawn instead of silently dropping.

Mirroring the gameplay radial menu

The single hardest part turned out to be the Game Menu tab: a live, browsable copy of BeamNG’s entire gameplay radial menu, built from the same data the built-in menu uses.

Building it from the game’s own data, rather than a hand-picked copy, means anything that’s in the radial menu is here too, so switching over doesn’t cost you anything.

Recreating that as a flat, keyboard-navigable list meant walking a tree that was designed to be drawn as icons and dials, handling checkbox/color entries with real ON/OFF state, and proxying vehicle-scoped submenus through the current vehicle exactly like the radial itself does.

Getting there took a real chain of small, specific bugs: tabs loading before the game had finished indexing its files, raw translation keys showing up as menu titles, a crash partway through drawing the vehicle list, and a search box that needed a different way of writing text into it than the obvious one.

Each one got fixed, tested in-game, and folded back in before moving on to the next tab.

What’s there now

VehicleSearchable spawner and swapper across every model and config, repair, ignite/extinguish, paint, and license plate text.

Sandbox toolsToggles and left/right-adjustable steppers for the vehicle-side tool set, plus a one-shot reset for all of them.

TeleportNamed, per-map position slots you can save and recall instantly, plus teleport-to-camera, flip-upright, and recover-to-road.

Game MenuThe full gameplay radial menu, mirrored and made keyboard-browsable.

FavoritesPin any item or menu to the top of the root list via a keybind, tucked into their own submenu so they don't clutter it.

It’s a small project by scope, but a good one for exercising the same muscles as the day job: reading an unfamiliar system’s real constraints (two isolated VMs, an undocumented radial-menu data shape) rather than the ones you’d assume from the outside, and building the interface around what the platform will actually let you do.

Download CV