OnGameLanguageChange

From Onset Developer Wiki
Revision as of 16: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)
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