Garry's Mod Wiki

LanguageChanged

LanguageChanged

  LanguageChanged( string lang )

Description

Callback function for when the client's language changes. Called by the engine.

Arguments

1 string lang
The new language code.

Example

Prints the new language code whenever the language changes.

local OldLanguageChanged = LanguageChanged function LanguageChanged( lang ) print( "New language: " .. lang ) OldLanguageChanged( lang ) end
Output: New language: en

Special Pages


Wikis

?

Render Time: 19ms

DB GetPage 2
Generate Html 2
SaveChanges (1) 5
Render Body 0
Render Sidebar 8