game.MountGMA

From Garry's Mod
Jump to: navigation, search
 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.Download

This feature is deprecated.
You should avoid using it as it may be removed in a future version.

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.FileInfo( 104548572, function( result )
	steamworks.Download( result.fileid, true, function( name )
		game.MountGMA( name )
	end) 
end)


Personal tools
Navigation