Add a country flag to your FiveM server
This guide explains how to configure a country flag (locale tag) on your FiveM server, so it appears in the public server list with the correct flag.
Why set a country tag?
The country tag allows players to easily spot your server in the public list thanks to the flag displayed next to the server name. This improves your server's visibility, especially among players in your region.
Step 1: Access the server.cfg file
Access your server.cfg file via:
- The YorkHost management panel, under the Files or Configs tab
- Or directly through txAdmin if you have it enabled
Step 2: Understand locale codes
Locale codes follow the ISO 639-1 (language) and ISO 3166-1 alpha-2 (country) standards. Here are the most common codes:
| Country | Locale code |
|---|---|
| France | fr_FR |
| Canada (French) | fr_CA |
| Belgium | fr_BE |
| Switzerland | fr_CH |
| United States | en_US |
| United Kingdom | en_GB |
| Germany | de_DE |
| Spain | es_ES |
| Portugal | pt_PT |
| Brazil | pt_BR |
| Netherlands | nl_NL |
| Finland | fi_FI |
| Australia | en_AU |
| Singapore | en_SG |
If your country is not in this list, the format is always the same: language_COUNTRY (e.g., it_IT for Italy, pl_PL for Poland).
Step 3: Edit server.cfg
Open your server.cfg file and add (or modify) the following line:
sets locale "en_US"
Replace en_US with the locale code matching your country.
Example for a French server:
sets locale "fr_FR"
Place this line outside of any configuration block. Ideally, add it at the top of your server.cfg, along with your other sets parameters.
Step 4: Restart and verify
- Save your
server.cfgfile - Restart your server from the YorkHost panel
- Open FiveM and refresh the server list
- Check that your country's flag appears next to your server name
The flag may take a few minutes to appear after restarting. If you don't see it immediately, wait and refresh the server list again.