server.cfg - along with everything around them.
If you just ordered your server and haven’t logged in yet, start with the Quickstart, then come back here.
1
Grab your ports from the Network tab
Open the Network tab. Every FiveM server ships with two allocations:
- Game port - what players connect to (the default template uses
30120). - txAdmin port - usually aliased
txortxadmin.
server.cfg to them in the next steps.2
Set your license key and txAdmin port in Startup
Open the Startup tab. Two variables matter before your first boot:
FIVEM_LICENSE- your Cfx license key. Generate one at portal.cfx.re tied to this server’s IP (shown in Network), then paste it in.TXADMIN_PORT- must match the txAdmin port from Step 1. If this doesn’t match your allocation, txAdmin won’t be reachable and the port will be refused on boot.
3
First boot and txAdmin setup
Head to the Console and hit Start. On first boot the console prints a one-time PIN:Open txAdmin in your browser at
http://YOUR_IP:TXADMIN_PORT (using the txAdmin port from Step 1), enter the PIN, and create your admin account. Save the credentials - the PIN won’t be reprinted. Lost it? Run txaPin in the console for a fresh one. See txAdmin for the full walkthrough.4
Fix the TCP/UDP endpoints in server.cfg
Open the Files tab and edit If your game allocation isn’t
server.cfg in your server root (or use txAdmin’s built-in cfg editor). Find the endpoint lines - they tell FiveM which port to listen on, and they must match your game port from Step 1:30120, change both lines to your allocated port. On Lumix Solutions these are usually pre-filled to match your allocation - don’t change them unless the port is wrong.5
Set your identity and slots
While you’re in OneSync is required for anything above 32 slots and for most modern frameworks. See Server Configuration for hostname color codes, banners, and the full breakdown.
server.cfg, set what players see in the server browser:Running custom EUP? Without a valid Cfx subscription, your server is capped at 10 players while custom EUP is loaded. Bump your slots above 10 and you’ll need an active Element Club tier - otherwise players past the cap can’t connect.
6
Connect a database (if your framework needs one)
ESX, QBCore, and most script packs need a MySQL database. Request one from the Databases tab, then point Use the Lumi-Panel database endpoint, not
oxmysql at it in server.cfg:localhost. Full steps in Database Setup.7
Start your resources and boot
List your resources with
ensure, in dependency order - frameworks and libraries before the scripts that rely on them:server.cfg is only read on boot, so restart from the Console to apply everything. Your server should now show in the FiveM browser and accept connections.
