GetGameLanguage: Difference between revisions
From Onset Developer Wiki
Created page with "{{Info|Function|Client|1.5.0}} {{FuncDescription|Gets the language that the player has set in their game settings.}} {{FuncSyntax|GetPlayerLanguage()}} {{FuncParameters}} {..." |
m BlueMountains moved page GetPlayerLanguage to GetGameLanguage without leaving a redirect |
(No difference)
|
Latest revision as of 10:10, 26 June 2021
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)