OnGameLanguageChange

From Onset Developer Wiki
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