DriversRecommendedOutdated drivers can make a good PC feel brokenScan driver issues before chasing fixes manually.Scan NowOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix Now×
Skip to content
VGSources
Blog

FiveM server.cfg Explained: Every Setting You Need (2026)

A practical, current guide to FiveM server.cfg: configure network endpoints, licensing, browser identity, OneSync and slots, resource startup, ACE permissions, privacy, RCon, includes and txAdmin without exposing secrets.
Length8 min Posted Quest giverVGSources Team
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

server.cfg is the startup configuration that tells FXServer which network sockets to open, how the server identifies itself, how many players it can support, which resources to load, and who may run administrative commands. This guide explains the settings that affect connectivity, listing, OneSync, resources, permissions, security, and txAdmin, with a safe baseline configuration and a troubleshooting path.

What server.cfg is and when FXServer reads it

FXServer receives server.cfg through the +exec startup argument. A standard Linux launch from the official layout is:

As an Amazon Associate I earn from qualifying purchases.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
cd ~/FXServer/server-data
bash ~/FXServer/server/run.sh +exec server.cfg

Commands and convars can also be entered in the server console, through RCon, from the command line, or by an ACL-permitted resource. A convar is a named configuration value that resources can read or set. Put quotation marks around values containing spaces, such as a server name or description.

The file is evaluated from top to bottom. That makes placement significant when one setting depends on another, when an included file changes a value, or when a resource must start after its dependency. Keep a copy of the exact file passed to +exec; editing a different directory is a common reason changes appear to have no effect.

#1 Best Overall
msi Codex Z2 Gaming Desktop, AMD R7-8700F, RTX 5070, 32GB DDR5, 2TB SSD | NVIDIA GeForce RTX 5070, USB Type-C, VR-Ready, Windows 11 Home. Model A8NVP-436US
  • POWERHOUSE 8-CORE GAMING PERFORMANCE — Driven by the AMD Ryzen 7 8700F with 8 cores and 16 threads, boosting up to 5.0 GHz for smooth, responsive gameplay and the ability to handle AAA titles, streaming, and background tasks all at once
  • NEXT-GEN BLACKWELL ARCHITECTURE — The NVIDIA GeForce RTX 5070 is powered by NVIDIA's cutting-edge Blackwell GPU architecture, delivering a massive generational leap in rasterization and ray tracing performance so you can experience your games the way they were meant to be played.
  • Simplistic Design: Enjoy the latest generation of Windows 11 Home for your everyday needs. *MSI recommends Windows 11 Pro for business use.
  • Cool While Gaming: In conjunction with an ARGB fan Air Cooler, the Codex R2 features four system cooling fans; three in the front and one in the rear to pull in cool air and push heat out of the PC.
  • Turn on the Bright Lights: With the built-in RGB lighting, take your gaming experience to the next level by pressing the MSI LED button to cycle through lighting options. Customize lighting even further with MSI Center software.

A minimal public configuration

The following is a starting point, not a complete production file. Replace the license key, names, and resource list with values appropriate to your server.

endpoint_add_tcp "0.0.0.0:30120"
endpoint_add_udp "0.0.0.0:30120"

sv_licenseKey "YOUR_KEY"
sv_hostname "My FiveM Server"
sets sv_projectName "My Project"
sets sv_projectDesc "A short sentence about the community"

onesync on
sv_maxClients 48
sv_scriptHookAllowed 0
sv_endpointPrivacy true

ensure mapmanager
ensure chat
ensure spawnmanager
ensure sessionmanager
ensure basic-gamemode
ensure hardcap
ensure rconlog

Do not paste a real key into a public tutorial, ticket, screenshot, repository, or log archive. Add your own framework and gameplay resources only after confirming their manifests, dependencies, and startup instructions.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Network endpoints: making the server reachable

endpoint_add_tcp

endpoint_add_tcp binds a TCP listening endpoint. The address and port must be valid, and the port must not already be occupied:

endpoint_add_tcp "0.0.0.0:30120"

endpoint_add_udp

endpoint_add_udp binds the corresponding UDP endpoint:

endpoint_add_udp "0.0.0.0:30120"

0.0.0.0 listens on the host’s available network interfaces. Bind to a specific local address only when a machine has multiple interfaces and you deliberately want to restrict which one accepts traffic. The familiar port 30120 is an example, not a requirement; use the port assigned by your provider or the one selected for your installation. Open and forward that port in the host firewall, cloud firewall, and router as applicable. The exact procedure varies by operating system and provider. TCP and UDP both need to be allowed, and another process cannot already be using either binding.

Rank #2
Alienware Aurora Gaming Desktop, RTX 5070, Intel Core Ultra 7 265F | 1TB SSD, 32GB DDR5, Wi‑Fi 7, Bluetooth, Killer 2.5Gb Ethernet, Windows 11 Home, Wired Keyboard, ACT1250
  • Legend perfected: Modern design with a matte basalt black finish in an optimized chassis with customizable AlienFX lighting zones, including the striking stadium lighting.
  • Game changing graphics: Step into the future of gaming and creation with the NVIDIA GeForce RTX 5070 graphics, powered by NVIDIA Blackwell architecture.
  • Marathon gaming unlocked: This high-performance technology ensures clean energy is consistently available, unleashing the top-level power of Intel Core Ultra 7 265F processor as you game, livestream, and multi-task for hours on end.
  • Total command: Alienware Command Center software allows you to create and edit AlienFX lighting across the ecosystem, choose and monitor your performance mode across distinct power states, and create custom gaming profiles for your whole library.
  • Dell Services: 1 Year Onsite Service provides support when and where you need it. Dell will come to your home, office, or location of choice, if an issue covered by Limited Hardware Warranty cannot be resolved remotely.

License, browser identity, and LAN mode

sv_licenseKey

sv_licenseKey authenticates the server with the Cfx.re platform:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
sv_licenseKey "YOUR_KEY"

Create the key in the Cfx.re portal and keep it secret. If a server starts without a valid key, startup will fail or public operation will not work as expected.

sv_hostname, sv_projectName, and sv_projectDesc

These values control the identity shown to players and in server listings:

sv_hostname "My FiveM Server"
sets sv_projectName "My Project"
sets sv_projectDesc "A short sentence about the community"

Use a stable, recognizable hostname and a description that accurately states the server’s gameplay or community focus. The sets form stores project metadata as convars; avoid putting secrets or personal data in these fields.

sv_lan

Set sv_lan true for a LAN-only server. In that mode the server does not operate as a normal public listing and skips the usual public-listing/license checks described by the command reference. Remove the line or set it to false when you intend to accept players over the internet.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
SKYESEV Prebuilt Gaming Desktop PC, AMD Ryzen 5 5600, GeForce RTX 3050 6GB,32GB DDR4 3200MHz RAM, 1TB NVMe SSD, ARGB Air Cooling, Wi-Fi,Tower Computer for Gaming, Streaming, Editing
  • Processor specifications: Adopting AMD Ryzen 5 5600 processor, with a basic clock speed of 3.5GHz and a turbo frequency of 4.4GHz, it can achieve fast response computing performance
  • Graphics Card: Features GeForce RTX 3050 graphics card with 6GB dedicated video memory for gaming and multimedia applications
  • Memory configuration: Equipped with 32GB DDR4 RAM (16GB * 2), providing sufficient memory capacity for multitasking and demanding applications
  • Gaming Performance: Designed to handle modern gaming titles and graphics-intensive tasks with smooth frame rates and visual quality
  • Desktop System: Complete gaming desktop computer system ready for setup and use out of the box

Player slots and OneSync

Choose the desired capacity first, then select a synchronization mode that supports it and the scripts you run. Increasing the slot number does not by itself provide enough CPU, memory, bandwidth, or script performance for a larger population.

Setting Meaning Practical rule
onesync off Disables OneSync features. Suitable only for setups whose resources and player count do not require OneSync.
onesync legacy Compatibility mode for older setups. Not recommended for new deployments because the reference notes performance and graphical issues.
onesync on Full state awareness and entity routing. Use for modern resources and capacities that require full OneSync.

sv_maxClients accepts an integer from 1 through 2048 in the current 2026 Cfx.re command reference:

sv_maxClients 48
Requested capacity Synchronization requirement
1–31 The command reference does not impose the 32-slot OneSync threshold; resource requirements still apply.
32–64 OneSync must be on or legacy.
65–2048 onesync on is required.

These are configuration requirements, not a promise of stable gameplay at every value. If players cannot join beyond a low limit, inspect both sv_maxClients and the active OneSync mode, then check server performance and resource design.

Game build selection

sv_enforceGameBuild selects the GTA game build that the server enforces. It matters when a map, vehicle, script, or other resource depends on DLC or newer game content. Use a build supported by the artifacts and resources you actually run; do not copy a number from an unrelated tutorial. Verify the current Cfx.re command reference and the compatibility notes for your resources before changing it. A mismatch can produce missing assets, script errors, or clients being refused for using an incompatible build.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Resource startup and ensure order

ensure resource_name starts a resource if it is stopped and restarts it when an administrator issues a resource restart command. Resource names must match their folder names, and the folder must contain a valid manifest such as fxmanifest.lua where required.

Rank #4
KOTIN Prebuilt Gaming PC RTX 5070 12GB, Ryzen 7 9700X, 32GB DDR5, 1TB SSD | 11.3in Smart Display, 850W 80+ Gold PSU, 360mm Liquid Cooler, WiFi 7, 1440p 4K ARGB Windows 11 Gaming Desktop Computer
  • POWERED BY RTX 5070 12GB + RYZEN 7 9700X - The GeForce RTX 5070 12GB GDDR7 graphics card pairs with an 8-core AMD Ryzen 7 9700X processor to drive smooth 1440p and 4K gameplay, giving this gaming PC the headroom for modern titles, streaming, and creative work.
  • 32GB DDR5 6000MHz MEMORY & 1TB NVMe SSD - 32GB of high-speed DDR5 memory and a 1TB PCIe 4.0 NVMe solid state drive deliver quick load times, smooth multitasking, and generous storage, keeping this prebuilt gaming desktop responsive under heavy workloads.
  • BUILT-IN 11.3-INCH Smart DISPLAY - An integrated smart screen shows real-time CPU and GPU temperatures, usage, and weather while you play, adding a distinctive and functional touch to your battlestation.
  • 850W 80+ GOLD POWER SUPPLY, 360MM LIQUID COOLING & WiFi 7 - An 850W 80 Plus Gold certified power supply provides stable, efficient power with headroom for future upgrades, while a 360mm AIO liquid cooler, WiFi 7, and an ARGB mid-tower case keep the Ryzen 7 CPU cool and connected in a clean build.
  • READY TO PLAY OUT OF THE BOX - Arrives fully assembled and tested with Windows 11 Home pre-installed, so your prebuilt gaming computer is ready to set up in minutes. Assembled in the USA, and backed by a one-year limited warranty and lifetime free technical support.

Default resources

The official vanilla example includes:

ensure mapmanager
ensure chat
ensure spawnmanager
ensure sessionmanager
ensure basic-gamemode
ensure hardcap
ensure rconlog

These are defaults, not a mandatory production stack. A framework may replace some of them or require additional resources.

A dependable loading sequence

  1. Start with core services and the resources they explicitly require.
  2. Load the framework and its dependencies.
  3. Add maps, vehicles, gameplay scripts, and optional utilities.
  4. After each addition, read the resource manifest and startup documentation and watch the console for dependency or export errors.

When a resource fails, confirm the folder name, manifest, dependency folders, and the order of the corresponding ensure lines. txAdmin recipes can add their own entries, so review those entries before duplicating or removing them.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Permissions and ACE access control

FiveM’s ACE system grants permissions to principals (such as player identifiers) and groups. A common setup pattern is:

add_principal identifier.fivem:1 group.admin
add_ace group.admin command allow

The identifier and group must match the access model used by your server. A broad command allow grants every command permission to that group, so reserve it for a small set of trusted administrators. For larger teams, grant only the commands each role needs and add individual principals to the appropriate groups. Test with a non-owner account before relying on the rules for moderation or emergency recovery.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Security and privacy controls

sv_scriptHookAllowed

sv_scriptHookAllowed 0

The default value disables permission for ScriptHook-based plugins. It is a server-side allowance, not a guarantee that every external plugin or modified client is impossible; use it alongside normal administrative and anti-cheat practices.

Best Value
YAWYORE Gaming PC, AMD Ryzen 7 5700X, GeForce RTX 5060 Desktop Computer
  • CPU: AMD Ryzen7 5700X (up to 4.6GHz) 8-Core 16-Thread to easily handle multi-line tasks
  • Main board: MSI B550M-A PRO motherboard provides reliable performance and stability
  • GPU: Geforce RTX 5060 8GB GDDR7 Graphics Cards (Brand may vary) Support DLSS 4 multi frame generation, ray tracing, and Reflex 2 delay optimization
  • RAM: 32GB DDR4 3200MHz (16GB*2) SSD: 1TB M.2 NVMe PCIe
  • Power supply: 650W (80plus bronze) certified for energy efficiency and stable performance

sv_endpointPrivacy

sv_endpointPrivacy true

When true, this hides player IP addresses from public reports generated by the server. It does not remove the need to protect logs and access credentials on the host.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Secrets

Protect the license key, database passwords, RCon password, API tokens, and provider credentials. Store sensitive values in files with restricted permissions or in provider-managed secret settings. If you request support, redact secrets while leaving the relevant non-secret lines intact; publishing a complete configuration can expose credentials and administrative access.

RCon and split configuration files

RCon

RCon permits remote console administration. Leave it disabled unless you have a specific operational need. If enabled, use a long, unique password and restrict network exposure with the host or provider firewall. The vanilla example leaves the line commented until an administrator intentionally enables it; follow that approach rather than enabling remote access by default.

exec includes

Use exec another-file.cfg to divide a large configuration into maintainable files:

exec permissions.cfg
exec resources.cfg

Included files are part of the effective configuration. Keep them in protected locations, record their order, and inspect every included file when troubleshooting. A value changed in an included file can override assumptions made from the main file alone.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

What belongs in txAdmin instead of server.cfg

txAdmin is bundled with FXServer builds above 2524 and provides a web panel with a CFG editor and validator, start/stop/restart controls, and moderation features. Use its editor to validate syntax and manage the game server, but keep the configuration boundary clear.

Configuration area Where to manage it
Game settings, resources, and network endpoints server.cfg or files it includes
Panel settings, staff accounts, moderation, and restart schedules txAdmin settings and management pages

Current txAdmin documentation uses TXHOST_* environment variables for the v8 host configuration. The txAdminPort, txAdminInterface, and txDataPath convars are deprecated. Do not add those deprecated panel convars to a new file without checking the release notes for the txAdmin version you are running.

A practical troubleshooting sequence

  1. Confirm the launch path. Start FXServer from the directory containing the intended file and verify that +exec server.cfg appears in the launch command.
  2. Validate both endpoints. Check TCP and UDP syntax, the provider-assigned port, firewall rules, router forwarding where applicable, and whether another process already owns the port.
  3. Check authentication safely. Confirm that sv_licenseKey is present and valid, but redact it from screenshots and logs.
  4. Investigate listing problems. Review sv_hostname, project fields, accidental sv_lan true, endpoint reachability, and startup errors.
  5. Investigate slot limits. Compare sv_maxClients with the OneSync threshold table and verify the active onesync mode.
  6. Investigate resource failures. Check the folder name, manifest, dependencies, ensure order, and any recipe-generated entries.
  7. Use txAdmin carefully. Run its CFG validator, then keep panel host settings in the current txAdmin environment configuration rather than copying deprecated convars into the game configuration.

Safe editing habits

  • Make one logical change at a time and restart or resource-restart only what is needed.
  • Keep dated backups of the working file and every file referenced by exec.
  • Use plain text and preserve quotation marks around values with spaces.
  • Comment why a non-obvious setting exists, especially a custom port, game build, or compatibility mode.
  • After a framework or artifact update, re-check manifests, dependencies, OneSync requirements, and txAdmin guidance rather than assuming an old file remains correct.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More quests from Patch Notes

  1. How to Set Up a RedM (RDR2) Server in 2026: License Key, txAdmin and server.cfg, Step by StepBlog11min
  2. Best RedM (RDR2) Server Hosting in 2026: Comparing Four Hosts on Slots, Memory and PriceBlog10min
  3. How to Host a Mindustry Server in 2026: server-release.jar, Port 6567 and the Commands That MatterBlog7min
Recommended PC Tool
Recommended PC Tool
Outdated Drivers Are Slowing You DownFree scan - exact matches
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.