OnGameLanguageChange

From Onset Developer Wiki
Revision as of 14:59, 24 June 2021 by BlueMountains (talk | contribs) (Created page with "{{Info|Event|Client|1.5.0}} {{FuncDescription|This function is called when the player changes their game language in the main menu.}} {{FuncSyntax|OnGameLanguageChange(Langu...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
OnGameLanguageChange

Type: Event
Context: Client
Introduced: v1.5.0

Description

This function is called when the player changes their game language in the main menu.

Syntax

OnGameLanguageChange(Language)
  • Language
    The new language as a string.

Example

AddEvent("OnGameLanguageChange", function (Language)
    AddPlayerChat("Your new language: "..Language)
end)

See also