Garry's Mod Wiki

system.GetCountry

  string system.GetCountry()

Description

Returns the country code of this computer, determined by the IP of the client. Uses the steamworks API function SteamUtils()->GetIPCountry().

This function does not work on Dedicated Servers and will instead return no value.

Returns

1 string
Two-letter country code, using ISO 3166-1 standard.