Installation
Step-by-step guide to install the Tworst Admin Menu in-game resource on your FiveM server.
This page covers the in-game script only. To use the cloud panel, see Web Panel (Tworst Cloud). To set up the Discord bot, see Discord Bot.
Prerequisites
Before installing, make sure you have:
Framework
QBCore or ESX
oxmysql
Required — must start before tw-adminmenu
FiveM Server
Recent artifact build recommended
Step 1: Download the Script
From Cfx.re Portal (Recommended)
Go to portal.cfx.re
Navigate to Granted Assets
Find tw-adminmenu in your purchased assets
Click Download to get the latest version
Step 2: Extract Files
Extract the downloaded archive
Place the
tw-adminmenufolder in your server'sresourcesdirectory
Step 3: Database Setup
Automatic Setup: With TW.AutoSql = true (default), the script automatically creates and migrates all required database tables on first start. No manual SQL import needed.
If you prefer a manual import (or disabled auto-migration), run the included sql/install.sql against your database.
Step 4: Configure the Framework
Open shared/config.lua and set your framework and language:
QBox users: set TW.Framework = "QBCore" — QBox is QBCore-compatible.
Most other integrations (inventory, garage, fuel, vehicle keys, clothing, jail, etc.) are left on "auto" and detected automatically. See Configuration for all options.
Step 5: Grant First (God) Access
Before anyone can use the menu, give yourself God access so you can manage staff and roles in-game.
In shared/config.lua:
Add your own identifier here first. Anyone listed in TW.GodIdentifiers is automatically provisioned with the God role and full access on join.
Step 6: Discord Token & Webhooks
For full functionality, configure your Discord integrations in shared/server_config.lua and shared/webhooks.lua.
Discord Bot Token
Set your Discord bot token so the panel can resolve Discord avatars and member/role info:
Without a valid DiscordBotToken, Discord avatars and role/member lookups won't work. The token must belong to a bot that is in your Discord server.
Logging Webhooks
Open shared/webhooks.lua and fill in a webhook URL for every log category you want recorded. Anything left blank falls back to default — and if default is also empty, those logs are not sent anywhere.
Don't skip this. If you leave webhooks empty, admin actions in those categories won't be logged to Discord and you'll have gaps in your audit trail. At minimum, set the default webhook so nothing is lost.
A quick way to cover everything: set default first, then add dedicated channels for the categories you care most about (e.g. punishments, economy, security). See the full reference in Configuration → webhooks.
Step 7: Add to server.cfg
Add the following to your server.cfg:
Load Order: oxmysql and your framework must start before tw-adminmenu.
The add_ace lines let the Admin Menu run server commands and the profiler (used by the dashboard/console features). Add them or those tools won't work.
Step 8: Restart & Open the Menu
Save all configuration changes
Restart your server completely
Join the server with an account listed in
TW.GodIdentifiersOpen the admin menu (use your configured keybind/command — you can also bind a key in the FiveM Settings → Key Bindings → FiveM menu)
On first open, the built-in onboarding tour (TW.Onboarding) walks you through the panel and initial setup.
Verification
After starting the server, verify the installation:
Check Console
Database tables created successfully (first run only)
No error messages related to
tw-adminmenu
In-Game Test
Open the admin menu as a God user
Confirm the dashboard loads with live server stats
Open the Online Players page and confirm players are listed
Open Admin → Staff/Roles and add your first staff member
Troubleshooting
Menu won't open / "No access"
Confirm your
fivem:ordiscord:identifier is inTW.GodIdentifiersMake sure you restarted the server after editing the config
Database errors
Verify oxmysql is started before
tw-adminmenuConfirm your database connection string in
server.cfgis correct
Framework not detected
Make sure
TW.Frameworkmatches your framework ("QBCore"or"ESX")Verify the framework resource starts before
tw-adminmenu
Need Help?
Having installation issues? Join our Discord server and open a support ticket with:
Server console errors
Your
TW.FrameworksettingScreenshots of any issues
Last updated

