Garry's Mod Wiki

Revision Difference

Global.UpdateGames#552129

<function name="UpdateGames" parent="Global" type="libraryfunc"> <description> <internal></internal> Updates the Gamelist. </description> <realm>Menu</realm> <file line="392-L399">lua/menu/mainmenu.lua</file> <file line="396-L403">lua/menu/mainmenu.lua</file> </function> <example> <description>Manually updating the Game list. This will Visually make all games available, but you won't be able to mount them.</description> <code> 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 </code> <output> <image src="https://i.imgur.com/FmpF9N8.png"/> </output> </example>