Garry's Mod Wiki

game.MountGMA

boolean, table game.MountGMA( string path )

Description

Mounts a GMA addon from the disk. Can be used with steamworks.DownloadUGC

Any error models currently loaded that the mounted addon provides will be reloaded.

Any error materials currently loaded that the mounted addon provides will NOT be reloaded. That means that this cannot be used to fix missing map materials, as the map materials are loaded before you are able to call this.

Arguments

1 string path
Location of the GMA file to mount, retrieved from steamworks.DownloadUGC. This file does not have to end with the .gma extension, but will be interpreted as a GMA.

Returns

1 boolean
success
2 table
If successful, a table of files that have been mounted

Example

Downloads the Playable Piano addon and mounts the content.

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

Page Links


Special Pages


Wikis

?

Render Time: 40ms

DB GetPage 4
Generate Html 7
SaveChanges (1) 15
Render Body 0
Render Sidebar 11