Garry's Mod Wiki

system.GetCountry

  string system.GetCountry()

Description

Returns the country code of this computer, determined by the localisation settings of the OS.

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.