game/MountGMA

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
 
Line 21: Line 21:
 
{{Example
 
{{Example
 
|Description=Downloads the Playable Piano addon and mounts the content.
 
|Description=Downloads the Playable Piano addon and mounts the content.
|Code=steamworks.DownloadUGC( 104548572, true, function( name )
+
|Code=steamworks.DownloadUGC( 104548572, function( name )
 
game.MountGMA( name )
 
game.MountGMA( name )
end)  
+
end)
 
}}
 
}}

Latest revision as of 17:54, 20 January 2020

 game.MountGMA( )

Contents

Description

Mounts a GMA addon from the disk. Any error models currently loaded that the mounted addon provides will be reloaded.

Can be used with steamworks.DownloadUGC

Arguments

string path

Location of the GMA file to mount, relative to the garrysmod directory

Returns

boolean

success

Returns

table

If successful, a table of files that have been mounted

Examples

Example

Downloads the Playable Piano addon and mounts the content.

steamworks.DownloadUGC( 104548572, function( name )
	game.MountGMA( name )
end)


Personal tools
Navigation