GetGameLanguage

From Onset Developer Wiki
Revision as of 10:10, 26 June 2021 by BlueMountains (talk | contribs) (BlueMountains moved page GetPlayerLanguage to GetGameLanguage without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
GetGameLanguage

Type: Function
Context: Client
Introduced: v1.5.0

Description

Gets the language that the player has set in their game settings.

Syntax

GetPlayerLanguage()

Parameters

  • This function has no parameters.

Return Value

  • Language as string in 2 letter code.

Example

AddCommand("lang", function()
	AddPlayerChat( "Your language: "..GetPlayerLanguage())
end)

See also