LatchAdmin: a txAdmin-style server panel for MafiaHub games

Latch team · 2026-12-05 · 6 min read

If you have run a FiveM server, you know txAdmin: you open a browser, start and stop the server, read the console, give your staff limited access and get on with your day. If you run a MafiaHub server, there hasn't been anything like it. Most owners still work with start scripts, a remote desktop session and a folder of backups they made by hand.

LatchAdmin is our answer to that. It's a free, open-source web panel for MafiaHub servers: Arcane MP, Kingdoms Connected and Mafia 2 Online. This post covers what it does, how it compares to txAdmin, who it's for and how to get it running.

What txAdmin is, and why MafiaHub needed its own panel

txAdmin is the server panel of the FiveM and RedM world. Its README describes it as a full-featured web panel and in-game menu to manage and monitor FiveM/RedM servers. It was created in 2019, and since early 2020 it has been a component of FXServer, so FiveM owners don't install anything separately. Its feature list is long: a recipe-based server deployer, an in-game admin menu, a player manager with warnings, bans and whitelists, Discord integration, scheduled restarts and a live console.

txAdmin is built for FXServer and FiveM resources. MafiaHub games run on a different server, with their own releases, resource format and server browser at mafiahub.dev. So the panel had to be built for them, and that's what LatchAdmin is. Some ideas will look familiar to txAdmin users: the permission groups follow the txAdmin style, and the database setup for HMP Foundations works the way txAdmin's does.

Who LatchAdmin is for

  • Communities running MafiaHub servers who want to stop logging into a remote desktop to restart a server or read a log.
  • Server teams where several people need different levels of access: someone who can restart, someone who can edit config, someone who only reads the console.
  • Script developers who run test and production servers for MafiaHub games.
  • Hosting providers who want to give customers a panel on the machine they rent.

It runs on Windows (x64) and Linux (x64 and ARM64), on the same machine as the game server.

What it does

Servers

  • Install a new server from the official MafiaHub release, or add a server folder you already run. Adding an existing folder doesn't change any file in it.
  • Start, stop and restart, with crash restarts and daily scheduled restarts.
  • A live console with command suggestions taken from your server's own help.
  • Turn resources on and off, upload a zip, and edit server.json, resource data files and secret environment variables.

Updates with a way back

A game update stops the server, backs up the runtime, server.json and data/, installs the new version and starts it again. If anything fails, the backup is put back. The last five backups are kept, and you can install a new game version right away or at the next scheduled restart. The panel updates itself from signed GitHub releases, and only while no server is running or at a scheduled restart, so players aren't kicked by a panel update.

Watching the server

  • Statistics for each server and the machine: players, CPU, memory, uptime and crashes, from 1 hour to 7 days.
  • Resource performance: script time, memory and slow ticks of every resource, read from the server's own resource monitor.
  • Discord alerts for your staff channel: crashes, restarts, updates and player records.
  • A public status message in Discord that shows which servers are up, how many people are playing and how to connect. The panel edits the same message instead of posting new ones.
  • Announcements that show as a card at the top of every player's screen, and a countdown before scheduled restarts.
  • An activity log of who did what.

Your team

Users get exactly the permissions they need: 16 permissions in 6 groups (servers, console, resources, configuration, updates and panel), plus access to all servers or only chosen ones. Passwords are generated, and two-factor sign-in is available for everyone. Nobody can hand out a permission or a server they don't have themselves.

Arcane MP and HMP Foundations

For Arcane MP, LatchAdmin can install and update HMP Foundations, the open-source gameplay framework, and create its MySQL or MariaDB database and a user that can only use that database.

LatchAdmin and txAdmin side by side

Comparison of txAdmin for FiveM and RedM with LatchAdmin for MafiaHub games
txAdminLatchAdmin
GamesFiveM and RedMArcane MP, Kingdoms Connected, Mafia 2 Online
How you get itShips with FXServerOne download for Windows or Linux
Server setupRecipe-based deployerInstall from MafiaHub releases, or add an existing folder
In-game admin menu and bansYesNot part of LatchAdmin
Scheduled restarts with warningsYesYes, with an on-screen countdown
Live consoleYes, with history and searchYes, with command suggestions
Staff permissionsAdmin permission system16 permissions in 6 groups, per server
DiscordStatus embed and bot commandsStaff alerts and a public status message
LanguagesOver 308

The honest summary: txAdmin is a mature tool with an in-game menu and player management that LatchAdmin doesn't try to copy. LatchAdmin focuses on running, updating and watching MafiaHub servers well, because that's the part owners currently do by hand.

How to install it

Four steps to install LatchAdmin on Windows

Windows

  1. Download latchadmin-windows-amd64.exe from the latest release and put it in its own folder, for example C:\LatchAdmin.
  2. Run it. If Windows SmartScreen warns about an unrecognised app, choose More info, then Run anyway. The exe isn't code-signed yet, and every release lists its SHA-256 hash in SHA256SUMS so you can check it.
  3. Your browser opens the setup page with the setup PIN filled in. If it doesn't, go to http://localhost:40120 and type the PIN. Create the owner account.
  4. Add a server: install a new one, or choose the folder of a server you already have.

Game servers on Windows need the Microsoft Visual C++ Redistributable (2015 to 2022, 14.40 or newer). Without it, a server exits right after starting.

Linux

Don't run it as root. Give it a system user of its own; your game servers run as that user too.

sudo useradd --system --create-home --home-dir /opt/latchadmin latchadmin
sudo -u latchadmin curl -L -o /opt/latchadmin/latchadmin https://github.com/heylatch/latchadmin/releases/latest/download/latchadmin-linux-amd64
sudo chmod +x /opt/latchadmin/latchadmin

Use latchadmin-linux-arm64 on ARM machines. Then set it up as a systemd service (the unit file is in the README) and start it:

sudo systemctl daemon-reload
sudo systemctl enable --now latchadmin
journalctl -u latchadmin | grep -A4 'First-time setup'

The last command shows the setup PIN. Open http://your-server:40120, enter it and create your account.

Reaching it from another computer

The panel listens on port 40120. Before you sign in over the internet, put HTTPS in front of it (your own certificate or a reverse proxy such as Caddy or nginx), or keep it on 127.0.0.1 and reach it through an SSH tunnel.

With or without Latch scripts

You don't need a Latch account to use LatchAdmin. Download it, run it, manage your servers. Without an account, the only thing it sends is an anonymous version check, and you can turn that off.

If you run scripts protected with Latch, linking your account adds a Latch scripts tab to each server:

  1. On the panel's Latch page, choose Link with Latch and approve the code on heylatch.app. The panel gets a key that can only list and download the scripts in your Library.
  2. Add your license key as LATCH_LICENSE under Configuration, Environment variables, and mark it secret. One key per server; every account gets one free (how keys work).
  3. Install the scripts you have access to, and choose how each one updates: when you click Update, at the next restart, or right away.

While linked, the panel reports its name, version, OS and a random id every 15 minutes, plus each server's game, version, state and installed Latch scripts. It never sends IPs, players, console output or config, and the panel shows you the exact report.

Open source, and what that means here

LatchAdmin is on GitHub under the MIT license, with no limits on servers or users. You can read every line it runs, and a few properties are worth checking for yourself:

  • Outbound only. The panel calls out; nothing calls in. There's no remote command channel, and nothing Latch answers is run.
  • A short list of hosts. It talks to Latch, MafiaHub, GitHub and the Discord webhooks you add, and refuses everything else. The one exception is the MySQL or MariaDB server you enter for HMP Foundations.
  • Signed updates. Panel updates install only when their Ed25519 signature matches the key built into the binary.

At the time of writing the latest release is 0.2.0, and the panel speaks English, German, Spanish, French, Italian, Portuguese, Russian and Turkish.

If you run an Arcane MP, Kingdoms Connected or Mafia 2 Online server, the LatchAdmin page has the downloads and a working demo of the console and updates. Issues and ideas are welcome on GitHub.

All posts