Garry's Mod Wiki

UpdateLanguages

  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: