Garry's Mod Wiki

Garry's Mod Wiki

  UpdateLanguages()

Description

This is used internally - although you're able to use it you probably shouldn't.

This function searches for all available languages and passes them to JS(JavaScript). JS then updates the Language list with the given languages.

Example

This manually changes the Language list to only German.

local languages = {"de.png"} pnlMainMenu:Call( "UpdateLanguages(" .. util.TableToJSON( languages ) .. ")" )
Output:

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...