List your server on FiveM
This guide explains how to make your FiveM server visible in the public server list.
Choosing your CFX license key
Every YorkHost FiveM server starts with a default CFX key provided by YorkHost. This key is shared by all servers: it does not allow your server to appear in the public list. To be listed, you have two options: the YorkHost "FiveM server list" option, or your own key.
| Key used | Public list | Slots | Addon clothing (EUP) above 5 players | Your protected Tebex / Keymaster scripts (Asset Escrow) |
|---|---|---|---|---|
| YorkHost default key (included) | No | 64 | Yes (Argentum tier) | No |
| FiveM server list option (€10 / month) | Yes | 64 | Yes (Argentum tier) | No |
| Your free Cfx.re key | Yes | Depends on your account | No (free tier limit) | Yes |
| Your key + Argentum (or higher) subscription on your Cfx.re account | Yes | Depends on your tier | Yes | Yes |
"FiveM server list" option
Available in your client area, on your FiveM service page, for €10 / month. YorkHost then provides a CFX key dedicated to your server, on the Argentum tier: your server appears in the public list with its own name and description, up to 64 slots, with addon clothing.
Your own Cfx.re key
Create it for free on the Cfx.re portal. Tier benefits (addon clothing above 5 players, more than 64 slots) depend on your Cfx.re account subscription, purchased directly from Cfx.re and independent of your YorkHost plan.
Protected scripts you bought are tied to the Cfx.re account that purchased them. They only start if the server key belongs to that same account (otherwise: You lack the required entitlement to use <resource>). With the YorkHost default key or the "FiveM server list" option, the key belongs to the YorkHost account: your protected scripts will not work.
If you want the public list, addon clothing and your protected scripts at the same time, use your own key with an Argentum (or higher) subscription on your Cfx.re account. Open source scripts and script-specific licenses (key in the script config, IP-based license) do not depend on the CFX key.
Entering the key
Paste the key in the License key field (FIVEM_LICENSE variable) in the panel Configuration tab, then restart the server. Changing only sv_licenseKey in server.cfg is not enough: the panel value is reapplied at every start. With the "FiveM server list" option, the dedicated key is provided by YorkHost: you don't need to create one.
Each server requires its own unique license key. Never use the same key for multiple servers.
Configuring server.cfg
1. Privacy configuration
Add this line to protect certain server information:
sv_endpointPrivacy true
2. Public listing configuration
Enable direct listing and configure the public IP address:
# Enable FiveM listing view
set sv_useDirectListing true
# Public IP of your server (WITHOUT the port)
set sv_listingIPOverride "51.91.123.45"
You can use a subdomain IP like game-node6.yorkhost.fr (without specifying the port in this variable).
3. Server information
Configure the name and description that will appear in the list:
# Your server name
sets sv_projectName "[US] My Roleplay Server"
# Your project description
sets sv_projectDesc "English RP server with realistic economy"
4. Technical configuration
# Enable OneSync
# 'on' = infinity (more than 64 slots)
# 'legacy' = up to 64 slots
set onesync on
# Steam API key (optional, use 'none' if not needed)
set steam_webApiKey none
# Your FiveM license key
set sv_licenseKey YOUR_CFX_RE_KEY
# Maximum number of players
sv_maxclients 64
Complete example configuration
Here's a complete configuration example:
# Privacy
sv_endpointPrivacy true
# Public listing
set sv_useDirectListing true
set sv_listingIPOverride "51.91.123.45"
# Server information
sets sv_projectName "[US] YorkCity RP"
sets sv_projectDesc "English RP server - Realistic economy"
sets tags "rp, english, whitelist"
# Technical configuration
set onesync on
set steam_webApiKey none
set sv_licenseKey cfxk_YOUR_KEY_HERE
sv_maxclients 64
# Hostname visible in console
sv_hostname "YorkCity RP - discord.gg/example"
Validation and verification
1. Remove sv_master1
If you have the following line in your server.cfg, delete it:
sv_master1 "" # TO BE DELETED
The presence of sv_master1 may prevent proper server listing.
2. Restart the server
- Save your
server.cfgfile - Completely restart your FiveM server
- Wait 2-3 minutes for propagation
3. Check the listing
Go to the FiveM server list and search for your server by name.
Common issues
Server doesn't appear in the list
Checks:
- The server is not using the YorkHost default key (it does not allow listing)
- The license key is valid and correctly entered in the panel (
FIVEM_LICENSE) sv_useDirectListingis set totruesv_listingIPOverridecontains the correct public IPsv_master1has been removed from the file- The server is started and accessible
Solution: Wait 5-10 minutes after restart, listing may take time.
Server appears as "Private"
Check that you don't have:
sv_lan true # Private server mode
This option makes the server invisible in the public list.
Incorrect information displayed
If the name or description doesn't display correctly:
- Use
sets(notset) forsv_projectNameandsv_projectDesc - Avoid unsupported special characters
- Restart the server after modification
JSON errors (JsonReaderException)
If you encounter errors like:
Newtonsoft.Json.JsonReaderException: Error reading JArray from JsonReader. Path '', line 0, position 0.
Cause: These errors and similar JSON-related errors are typically caused by your server not being properly listed on the FiveM public server list.
Solution:
- Verify that your server is correctly configured following the steps above
- Ensure
sv_useDirectListingis set totrue - Check that
sv_listingIPOverridecontains your correct public IP - Confirm your license key is valid
- Remove any
sv_master1directive from yourserver.cfg - Restart your server and wait 5-10 minutes for the listing to propagate
Going further
Custom tags
Add tags to improve server discovery:
sets tags "rp, english, whitelist, economy, jobs"
Locale
Set your server language:
sets locale "en-US"
Banner and image
You can add a custom banner:
sets banner_detail "https://example.com/banner.png"
sets banner_connecting "https://example.com/loading.png"
Make sure images are hosted on a publicly accessible server and URLs use HTTPS.