Garry's Mod Wiki

Garry's Mod Wiki

  UpdateGames()

Description

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

Updates the Gamelist.

Example

Manually updating the Game list. This will Visually make all games available, but you won't be able to mount them.

function UpdateGames() local games = engine.GetGames() for k, v in ipairs( games ) do v.installed = true v.owned = true end pnlMainMenu:Call( "UpdateGames( " .. util.TableToJSON( games ) .. ")" ) end
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...