Skip to main content

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:

CountryLocale code
Francefr_FR
Canada (French)fr_CA
Belgiumfr_BE
Switzerlandfr_CH
United Statesen_US
United Kingdomen_GB
Germanyde_DE
Spaines_ES
Portugalpt_PT
Brazilpt_BR
Netherlandsnl_NL
Finlandfi_FI
Australiaen_AU
Singaporeen_SG
tip

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"
Warning

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

  1. Save your server.cfg file
  2. Restart your server from the YorkHost panel
  3. Open FiveM and refresh the server list
  4. Check that your country's flag appears next to your server name
Good to know

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.