Garry's Mod Wiki

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

Page Links


Special Pages


Wikis

?

Render Time: 23ms

DB GetPage 3
Generate Html 2
SaveChanges (1) 9
Render Body 0
Render Sidebar 6