Garry's Mod Wiki

IsMounted

  boolean IsMounted( string game )

Description

Checks whether or not a game is currently mounted. Uses data given by engine.GetGames.

Arguments

1 string game
The game string/app ID to check.

Returns

1 boolean
True if the game is mounted.

Example

Check if Counter-Strike: Source is mounted.

IsMounted('cstrike')