How To Configure Your RedM Server
Learn how to configure your RedM dedicated server using server.cfg.
RedM servers are primarily configured through the server.cfg file, which controls server settings, resources, permissions, and more. This is very similar to FiveM configuration if you are familiar with that platform.
Basic Configuration
Open the XGamingServer Panel
Log in to the XGamingServer Panel.
Open Files
In the sidebar, click Files.
Open server.cfg
Find and click on server.cfg to open it in the editor.
Review Key Settings
Here are the most important settings in your server.cfg:
# Server name displayed in the browser
sv_hostname "My RedM Server"
# Max players
sv_maxclients 32
# License key from keymaster.fivem.net
sv_licenseKey "your_license_key_here"
# Steam Web API key (optional, for Steam authentication)
set steam_webApiKey "your_steam_api_key"
# Server icon (must be a 96x96 PNG)
load_server_icon myicon.png
# Server tags (shown in server browser)
sets tags "roleplay, custom"
# Locale
sets locale "en-US"
# OneSync (required for higher player counts)
set onesync onSave and Restart
After making changes, click Save and restart your server.
Loading Resources
Resources (scripts, maps, game types) are loaded in server.cfg using the ensure or start command:
# Ensure a resource starts
ensure mapmanager
ensure chat
ensure spawnmanager
ensure sessionmanager
# Start a custom resource
ensure my-custom-resource📝 Note: Resources must be placed in the
resourcesdirectory before they can be loaded. See the Install Resources guide for details.
Server Convars
You can set custom convars (configuration variables) that resources can read:
# Set a convar
set my_custom_setting "value"
# Set a replicated convar (visible to clients)
setr my_replicated_setting "value"💡 Tip: Always make sure you have a valid cfx.re license key set in your configuration. Without it, your server will not start properly.
If you need help with configuration, join our Discord and we will help you out.
How is this guide?