Garry's Mod Wiki

Garry's Mod Wiki

  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

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...