FiveM & RedM Tools

FiveM server.cfg Generator

Build a complete, ready-to-run server.cfg for your FiveM or RedM server. Unlike the bare file txAdmin writes, this one is fully commented, uses security-sane defaults, groups everything into clear sections, and loads resources in a dependency-safe order. Fill in the form and copy or download. Everything runs in your browser, with no login.

Sensible example loaded, edit anything

Server identity

How your server appears in the browser. Blank optional fields are left out of the file.

Networking & OneSync

The endpoint port, player cap, and sync mode. Invalid numbers show an error and are skipped in the file.

More than 32 players requires OneSync. Keep onesync set to on.

Security

Sane defaults that beat a bare config: RCON off unless you set a password, IPs hidden, ScriptHook off.

Resources

The standard base resources, emitted as ensure lines in a dependency-safe load order. Add your own below.

Admins & ACE permissions

Each admin is added to group.admin, which is granted every command. Pick the identifier type and paste the value.

server.cfg output
# ####   #####   ####  #####  #####   ###   #           ####   #####  #   #
# #   #    #    #        #      #    #   #  #           #   #  #      ##  #
# #   #    #    #  ##    #      #    #####  #           #   #  ####   # # #
# #   #    #    #   #    #      #    #   #  #           #   #  #      #  ##
# ####   #####   ####  #####    #    #   #  #####       ####   #####  #   #
# Generated with the Digital Den server.cfg generator - https://dgden.com/cfg
#

# ==== SERVER IDENTITY ====
# Name shown in the server browser. Supports ^0-^9 colour codes.
sv_hostname "My FiveM Server"
# Project name shown on the loading/info panel.
sets sv_projectName "My FiveM Server"
# Short project description shown next to the name.
sets sv_projectDesc "A server built with Digital Den tools."
# Locale controls date and number formatting in some resources.
sets locale "en-US"
# Tags help players find your server. Comma separated.
sets tags "roleplay, economy, custom"

# ==== NETWORKING ====
# Game endpoints. 0.0.0.0 binds every interface; normally only change the port.
endpoint_add_tcp "0.0.0.0:30120"
endpoint_add_udp "0.0.0.0:30120"
# Maximum player slots. FiveM supports up to 2048 with OneSync.
sv_maxclients 48
# Note: more than 32 players requires OneSync (set onesync on below).

# ==== ONESYNC ====
# OneSync raises the player cap and enables server-side state awareness.
# on = current OneSync, legacy = older 32+ mode, off = vanilla 32 slots.
onesync on

# ==== SECURITY ====
# Server license key. Generate one for free at https://keymaster.fivem.net
# The server will not start until this is a real key (not "changeme").
sv_licenseKey changeme
# Optional Steam Web API key from https://steamcommunity.com/dev/apikey
# Enables the steam: identifier. Leave as "" if you do not use it.
set steam_webApiKey ""
# RCON is disabled (no rcon_password set). This is the safer default.
# Only enable RCON if you genuinely need it, then use a long random password.
# Hides player IP addresses from client-side resources and most logs.
sv_endpointprivacy true
# ScriptHookV / native trainers. Keep false on live servers, it is a cheat vector.
sv_scriptHookAllowed false

# ==== RESOURCES ====
# Base resources start first, in a dependency-safe order. ensure = start + enforce.
# Loads maps and map-related exports
ensure mapmanager
# The default chat box and chat message API
ensure chat
# Handles player and vehicle spawning
ensure spawnmanager
# Manages player sessions and connections
ensure sessionmanager
# Core FiveM gameplay glue resource
ensure fivem
# Enforces the player slot limit
ensure hardcap
# Logs RCON activity to the console
ensure rconlog
# The default Tab-key scoreboard
ensure scoreboard
# Draws player name tags above characters
ensure playernames

# ==== Admins / ACE permissions ====
# No admins configured yet. Add identifiers above to grant ACE admin access.

Save this as server.cfg in your server data folder, replace changeme with your real license key, then launch FXServer with +exec server.cfg.

Why this beats the txAdmin default

Security-sane defaults. RCON stays disabled unless you set a password, sv_endpointprivacy is on to hide player IPs, and sv_scriptHookAllowed is off so trainers cannot attach. An optional advanced anti-cheat block tightens sv_authMaxVariance and sv_authMinTrust.

Readable and grouped. Every section has a # ==== HEADER ==== and a comment on each non-obvious directive, so you can actually maintain the file six months later.

Correct load order. Base resources are emitted in a dependency-safe order, and admin ACE lines come last so your permissions apply on top of everything else.

Tip: keep your real sv_licenseKey and any rcon_password out of public repos and screenshots. Treat server.cfg like a secret.

FAQ

FiveM server.cfg, explained

What is server.cfg in FiveM?+

server.cfg is the plain-text configuration file every FiveM (and RedM) server reads on startup. It sets your server name, network endpoints, player limit, OneSync mode, license key, security convars, admin permissions, and the list of resources to start. The server runs each line as a console command from top to bottom, so order matters: endpoints and core convars come first, then your resources.

How do I use the generated server.cfg?+

Copy or download the file, save it as server.cfg in your server data folder (next to the resources directory), then paste your real license key from keymaster.fivem.net over "changeme". Start the server with FXServer pointing at it, for example run.bat +exec server.cfg on Windows or bash run.sh +exec server.cfg on Linux. Everything in this tool runs in your browser, nothing is uploaded.

How is this better than the server.cfg txAdmin generates?+

txAdmin writes a minimal, mostly uncommented config aimed at getting you online fast. This generator produces a fully commented file with security-sane defaults: RCON left off unless you deliberately enable it, sv_endpointprivacy on to hide player IPs, sv_scriptHookAllowed off for live servers, an optional advanced anti-cheat block, clear section headers, and a dependency-safe resource load order. It also writes your admin ACE lines, which txAdmin does not manage inside server.cfg.

Should I put an RCON password in server.cfg?+

Usually no. RCON is an old remote-console protocol that sends traffic in the clear and is a common target for brute-force attacks, so the safest default is to leave rcon_password unset, which disables RCON entirely. This tool omits the line when you leave the field blank. If you truly need remote console access, set a long, random password and never reuse it anywhere else.

Do I need OneSync for more than 32 players?+

Yes. Vanilla FiveM caps a server at 32 slots. To go beyond that you must enable OneSync (onesync on) and set sv_maxclients up to 2048. This generator sets onesync on by default and adds a warning comment if your player count is above 32 while OneSync is off, so you do not accidentally ship slots that players cannot actually join.

Related tools

All tools →

More in FiveM & RedM Tools.