
- ESX
By Luke

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.
[fivemx_server_cfg_tool]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.
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.
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 8Use 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.
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.
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.
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.
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.
Cfx.re — setting up a server vanilla · Cfx.re — setting up a server txadmin
Trying to appear in the FiveM server list? Read the Cfx Portal and listing troubleshooting guide.





