G.GetMountableContent

From GMod Wiki

Revision as of 12:54, 10 November 2009 by Crazy Quebecer (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax GetMountableContent( )
Where is this used?
Description:
Retrieves all the mountable content for GMod.
Returns: Table
Part of Library: Global Functions
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=G.GetMountableContent]G.GetMountableContent [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionPrints all the mountable content.
Used onNewerShared.png
Code
PrintTable( GetMountableContent() )
Output
HL2: Episode 2:
		mounted	=	true
		title	=	HL2: Episode 2
		depotid	=	420
		mountable	=	true
		name	=	ep2
HL2: Episode 1:
		mounted	=	true
		title	=	HL2: Episode 1
		depotid	=	380
		mountable	=	true
		name	=	episodic
Portal:
		mounted	=	true
		title	=	Portal
		depotid	=	400
		mountable	=	true
		name	=	portal
Team Fortress 2:
		mounted	=	true
		title	=	Team Fortress 2
		depotid	=	440
		mountable	=	true
		name	=	tf
Half-Life 2:
		mounted	=	true
		title	=	Half-Life 2
		depotid	=	220
		mountable	=	true
		name	=	hl2
Counter-Strike:
		mounted	=	true
		title	=	Counter-Strike
		depotid	=	240
		mountable	=	true
		name	=	cstrike
Day of Defeat:
		mounted	=	true
		title	=	Day of Defeat
		depotid	=	300
		mountable	=	true
		name	=	dod
Zeno Clash:
		mounted	=	false
		title	=	Zeno Clash
		depotid	=	22208
		mountable	=	false
		name	=	zeno_clash
Half-life Deathmatch: Source:
		mounted	=	false
		title	=	Half-life Deathmatch: Source
		depotid	=	360
		mountable	=	true
		name	=	hl1mp
Half-Life: Source:
		mounted	=	false
		title	=	Half-Life: Source
		depotid	=	280
		mountable	=	true
		name	=	hl1
Half-Life 2: Lost Coast:
		mounted	=	false
		title	=	Half-Life 2: Lost Coast
		depotid	=	340
		mountable	=	true
		name	=	lostcoast
Half-Life 2: Deathmatch:
		mounted	=	true
		title	=	Half-Life 2: Deathmatch
		depotid	=	320
		mountable	=	true
		name	=	hl2mp


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox