Garry's Mod Wiki

UpdateGames

  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: