Global/IsMounted

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
m
(This has been fixed I believe)
 
Line 1: Line 1:
 
{{Func
 
{{Func
|Name=IsMounted
+
|Description=Checks whether or not a game is currently mounted. Uses data given by {{LibraryFunction|engine|GetGames}}.
|Parent=Global
+
|Description=Checks whether or not a game is currently mounted. Uses data given by {{LibraryFunction|engine|GetGames}}. Currently does not work correctly serverside on dedicated servers.
+
 
|Realm=Shared and Menu
 
|Realm=Shared and Menu
 
|IsClass=No
 
|IsClass=No

Latest revision as of 12:31, 9 May 2019

 IsMounted( )

Contents

Description

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

Arguments

string game

The game string/app ID to check.

Returns

boolean

True if the game is mounted.

Examples

Example

Check if Counter-Strike: Source is mounted.

IsMounted('cstrike')


Personal tools
Navigation