Edit the server.cfg that your active FXServer or txAdmin profile actually loads. Keep a working copy, change only the setting you need and verify startup plus a real player connection. The configuration tool below can help draft settings; review its output against your installed resources and the official reference.
The configuration and code examples here target FiveM for GTA V Legacy. Enhanced has different runtime and compatibility rules; check Cfx.re’s Legacy-to-Enhanced changes before applying them to an Enhanced server.
Open the server.cfg Builder & Checker
Find the active configuration
In txAdmin, inspect the selected server profile and configured server-data/configuration path. For a manual installation, inspect the startup command and its +exec argument. The file does not have to sit beside the FXServer executable. Editing an unused copy changes nothing.
Back up the file and any included files before editing. Keep your license key, database connection string and other secrets in protected server-side configuration. Never include them in screenshots or client/shared scripts.
Understand set, sets and setr
set defines a server convar. sets publishes server information, and setr replicates a value to clients. Use the form required by the documented setting. Never use a public or replicated setting for credentials.
A small configuration example
These lines illustrate network and public identity settings. They are not a complete framework installation: retain the valid server registration key, installed recipe’s requirements and explicit resource list in your private configuration.
endpoint_add_tcp "0.0.0.0:30120"
endpoint_add_udp "0.0.0.0:30120"
sv_hostname "My Roleplay Server"
sets sv_projectName "My Roleplay Server"
sets sv_projectDesc "English roleplay with a guided start"
sets locale "en-US"
sv_maxclients 8
Use the port assigned by your host and allow its required TCP/UDP traffic. Set the slot limit according to your entitlement and tested capacity. Raising the number alone does not add processing power or player-slot entitlement.
Start dependencies before their users
Follow your framework recipe and each resource’s manifest. For example, a resource using oxmysql must load after that driver and after its connection string is set. Include a separate resource list with exec resources.cfg if that helps keep configuration readable.
Avoid copying another server’s entire resource list. Every ensure must name something intentionally installed. Retain any startup-only settings in the supported startup/configuration location and perform a full restart when required.
Keep game build and artifacts separate
FXServer artifacts are the server runtime. sv_enforceGameBuild selects GTA content required by resources. Choose a supported value from the Cfx.re server command reference when necessary, and test dependent maps/vehicles. It is not a universal crash-prevention switch.
Configure access deliberately
Keep legacy RCon disabled unless you need and secure it. Assign only the necessary ACE permissions to the intended identifiers. Verify allowed and denied cases with ordinary player accounts. A hidden command or UI element is not an authorization check.
Do not use copied Source-engine rate settings or unknown “optimization” flags. Check each setting against current documentation or runtime source. Player endpoint privacy is separate from hiding a server’s network origin and provides no DDoS protection.
Verify each change
- Save the configuration and restart through the existing server manager during a suitable window.
- Read the first startup errors and resolve missing included files, resource dependencies or invalid arguments.
- Connect using the actual endpoint, then check the public name and description separately in the server list.
- Test the behavior you changed and a relevant denied/error case.
- If the change fails, restore the known-good configuration and restart through the same manager.
When a setting appears ineffective
Confirm the active profile and search included configuration files for another assignment. Check whether the setting is read only at startup, requires setr, or belongs to a resource that is not running. Use the owning resource’s source/documentation instead of adding several similar-looking keys.
Reference documentation
Cfx.re — setting up a server vanilla · Cfx.re — setting up a server txadmin