> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.sparkedhost.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to Add Country Flag to Garry's Mod Server



${youtube}[](sqcc4pulM6U)On your Garry's Mod server, you can set a country flag, displayed to the left of your GMod server in the browser.

![Server browser example](https://images.surferseo.art/510e5368-0ea2-47e3-b154-8099f2a3c950.png)
Displayed location flags can represent the country that the server is in. The location flag can also represent the language.
This can be helpful for players from unique countries looking for a server to connect to.
---

## Adding a Country Flag to Your GMod Server

To add a Country Flag to a GMod server:

1. Log Into Your Garry's Mod Server
    
2. Stop your GMod server. You won't get an error if you don't do this, but you have to restart the server at some point to update it.
    
3. Open the `server.svg` file (Search for `/garrysmod/cfg/server.cfg`) in a text editor.
    
4. Add the line `sv_location us` to the end of the file in a new line (this is for the USA flag, for other flags see below).
    
5. Save the cfg file, & **restart the garry's mod server**.
    
6. On startup, you should see the flag in the server browser.
---

## Adding a Unique Country Flag
![Other flags](https://images.surferseo.art/37c692fc-7aeb-49e0-b3a2-f8bfdffc3e7e.png)
To add other types of country flags to your Garry's mod server, change the line `sv_location us` to a different ISO code in the server.cfg file. This directly corresponds to the flag icon in `materials/flags16`. Examples below:
* Russian flag: `sv_location ru`
    
* Great Britain flag: `sv_location gb`
    
* Lithuania flag: `sv_location lt`
    
* French flag: `sv_location fr`
    
* European Union flag (has a special case): `sv_location eu`
---

## Need a different country flag code?
1. Check out the full list of ISO flag codes online: [https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)
    
2. Find the country that you want to add as a flag (Control + F and search the name of the country).
    
3. In the table, select and copy the `Code` in the same row (Make sure you're in the `Officially assigned code elements section` OR the `Exceptional reservations` section).
    
4. Instead of `sv_location us`, change `us` to the code of the country that you copied before and save it to the server.cfg file.
---

## Troubleshooting

Having some issues adding your country flag? 

* Make sure that you restarted the server.
    
* Make sure you have set the correct country code.
    
* Make sure that you saved the config file.
    
### Still have some questions?
Are you still having trouble with adding your country flag to your Garry's Mod server? Make a ticket at: [https://sparkedhost.com/contact,](https://sparkedhost.com/contact) we'll get back to you as soon as possible. 

By: Julian T.