OnGameLanguageChange: Difference between revisions

From Onset Developer Wiki
(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...")
 
(No difference)

Latest revision as of 14:59, 24 June 2021

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