Garry's Mod

Garry's Mod

178 ratings
Country Flags!
2
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Effects
Addon Tags: Fun, Roleplay
File Size
Posted
Updated
22.295 KB
17 Dec, 2022 @ 6:05am
25 Dec, 2022 @ 11:47pm
5 Change Notes ( view )

Subscribe to download
Country Flags!

Description
this was originally a script i wrote for my server, but i modified it to be a standalone addon!
the title is self-explanatory, this addon adds country flags above players' heads (the country shown in the flag is your country)

some Country Flags features:
  • slightly hijacks SUI Scoreboard (that fancy scoreboard you see in most servers) to add a country flag under players' names! (look in addon images for an example)
  • ability to choose whether you want people to see your country or not!
  • flags appear much bigger when you're in a vehicle, this lets you see others' flags from far away (for example, if you're in air combat, or in tanks, or whatever lol)
  • custom flag for server bots
  • a spawnmenu control panel, and console commands if you prefer!

you can control the flags behavior in Spawnmenu > Options > Player > Country Flags, but if you prefer, you can use convars too:
er_flagdistance 1500 - controls how far away you can see flags, default is 1500 units er_sendmycountry 1 - whenever you join a server, this controls if your country will show up, default is 1 (yes) er_showmycountry 1 - this controls whether you can see your own flag in thirdperson, default is 1 (yes) er_largeflagsinvehicles 1 - self explanatory, flag size depends on how big the vehicle is, default is 1 (yes)

le credits
  • Kodya - helped make flags not overlap
  • Marcel, Snowy, Uzi, novaray, and our overlord robots - helped with addon screenshots
  • PanMann - helped me figure out a bug
67 Comments
[FJOX.win] ƒjøx 17 Jun @ 6:47am 
I broke it :)

[CountryFlags] Country fetch failed for [FJOX.win] ƒjøx: reserved range
["message"] = reserved range
["query"] = 100.108.22.57
["status"] = fail
68 200
["Access-Control-Allow-Origin"] = *
["Content-Length"] = 68
["Content-Type"] = application/json; charset=utf-8
["Date"] = Wed, 12 Jun 2024 17:32:00 GMT
[CountryFlags] send this to the dev if u can :)
Purrkrim!! 2 Mar @ 8:47am 
does it have ww2 flags and ww1 ?
andreweathan  [author] 24 Nov, 2023 @ 9:33am 
gm_rhine
theswedishgamer 10 Nov, 2023 @ 1:23pm 
what's the name of the map you're using?
xDeviuSx 10 Oct, 2023 @ 3:23pm 
hi
Skyx PL 6 Aug, 2023 @ 6:20am 
how to change flag?
andreweathan  [author] 18 Jun, 2023 @ 4:01am 
i could do that in chat, sure
AlmightySupreme1 17 Jun, 2023 @ 12:40pm 
Could you make this addon notify the player about their flag being displayed before it's displayed, and allow them the option to turn it off before it's shown?
andreweathan  [author] 31 May, 2023 @ 12:13pm 
i'll think about adding it :)
Scanda the Real One 31 May, 2023 @ 12:12pm 
I was thinking this addon would do so because for eg. you live in a country that you're not ethnically related to so you would want your own bloodline country to show up instead