Garry's Mod Wiki

game.MountGMA

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

1 string path
Location of the GMA file to mount, retrieved from steamworks.DownloadUGC

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: 45ms

DB GetPage 3
Generate Html 17
SaveChanges (1) 10
Render Body 0
Render Sidebar 13