Articles on: FiveM

Setting a Country Tag in Your FiveM Server

Introduction


FiveM servers can be displayed with different languages and country flags. This tutorial explains how to set the language and country flag for your server.


Server Flags

Configuration


The server's flag and language are configured using the Locales option in the server config.

Step 1 - Open Server Configuration File


Access the server configuration file (server.cfg) via the game server administration under Configs.
Alternatively, if you're using txAdmin, you can access it directly in TxAdmin.

Step 2 - Find Locale/Language Code for Your Country



The language/display is defined using locales (language codes/country codes) based on ISO 639-1 and ISO 3166-1 standards. For example, British English is en-GB, Spanish is es, and Canadian French is fr-CA. You can find the complete lists of language and country codes on the respective Wikipedia pages.

Below is a list of some relevant countries/languages:

CountryLanguageLocale
GermanyGermande_DE
USAEnglishen_US
CanadaEnglishen_CA
AustraliaEnglishen_AU
United KingdomEnglishen_GB
FinlandFinnishfi_FI
FranceFrenchfr_FR
NetherlandsDutchnl_NL
PortugalPortuguesept_PT
BrazilPortuguesept_BR
SpainSpanishes_ES
SingaporeEnglishen_SG


CAUTION: Most countries generally support displaying the server flag. However, not all resources include every language. So, check beforehand if your country/language is supported!.

Step 3 - Adjust Server Configuration File


Open the server configuration file (server.cfg).
Check if the sets locale command exists. If not, add it with the desired value, for example: sets locale "en_US"
Replace "en_US" with your desired language/locale code.
Save the changes.

Step 4 - Restart and Test Server


Restart the server to apply the changes.
Reload the server list in your FiveM client.
You should now see the updated language and country flag.

Congratulations! You've successfully set the country tag for your FiveM server.

Updated on: 21/04/2024

Was this article helpful?

Share your feedback

Cancel

Thank you!