Skip to main content
server.cfg is the main configuration file of a FiveM server: it sets the server name, server list details, OneSync, the game build and which resources start. On FREAKHOSTING, click Server config under FIVEM in the sidebar to edit it in plain words, then click Review and save, check the changes and click Save changes. Restart the server to apply them.

Before you start

  • If txAdmin runs your server from another folder, the page shows the check txAdmin runs this server. Pick your server’s main folder in txAdmin, or your changes are not used. See how to set up txAdmin.

How to edit server.cfg with Server config

1

Open Server config

Open your server in the Game Panel and click Server config under FIVEM. Only the lines you change are touched.
FiveM Server config page with Open txAdmin, the Checks box and the Your server section with Server name, Project name, Player slots, Language and Licence key

The Server config page

2

Change the fields

Fill in the fields in the tables below. A field marked not in the file has no line in server.cfg yet; filling it in adds the line.
3

Review the changes

Click Review and save in the bar at the bottom. Review your changes shows exactly which lines change. Licence keys, passwords and other secrets are hidden in this view.
Review your changes dialog showing the server.cfg lines that change, the server.cfg.bak note and the Save changes button

Review your changes before saving

4

Save and restart

Click Save changes. The old file is kept as server.cfg.bak. Restart the server to apply the changes.

Your server

Gameplay and security

Gameplay and security section with OneSync, Game build, Allow Script Hook and Hide player IP addresses, and the Server list section with Description, Tags, banners and Server icon file

Gameplay, security and server list settings

Server list

How to edit the raw server.cfg file

For lines the page doesn’t cover, such as ensure lines or script settings, click Advanced: open the raw file. It opens server.cfg in the file editor, which keeps earlier versions under History. See how to use the file manager.

FiveM server.cfg example explained

Don’t add sv_maxclients or sv_licenseKey by hand: slots come from Max Players and the key from FxServer License Key, both in Startup.

What is the difference between set, sets and setr?

set creates a server variable (convar). sets does the same and also shows it in your server’s public info, which is why tags and the locale use it. setr makes the value readable by players’ game clients as well, which some scripts need. Check each script’s instructions for which one to use.

Frequently asked questions

Where is server.cfg on my FiveM server?

In your server’s main folder. If you deployed a txAdmin recipe into another folder, that server uses the server.cfg in the recipe’s folder instead.

How do I undo a change to server.cfg?

The previous file is saved as server.cfg.bak, and the file editor’s History keeps earlier versions you can restore.

Do server.cfg changes apply without a restart?

No. Restart the server after saving. To start a single new resource without a restart, use refresh and ensure in the console.

Why does my slot number keep changing back?

The panel rewrites the slots line from MAX_PLAYERS at every start. See how to change slots.

FiveM server guide

Every FiveM guide in one place.

Change the game build

sv_enforceGameBuild and the build list.

Resource start order

Order your ensure lines correctly.

Add a server logo

The 96 × 96 server icon.

Use the file manager

Edit files and restore older versions.
Tested by the FREAKHOSTING team on our Game Panel on 29 October 2026 (FXServer build 35245 (Recommended) with txAdmin). Commands checked against the official Cfx.re server commands. Steps may differ slightly if FiveM changes.

Need Extra Help?

If you encounter any issues, our support team is ready to assist:

Save on Your Hosting

Ready to upgrade your hosting? Use code KB20 at checkout for 20% off your first order!

Last Updated: October 2026