Revision Difference
game.MountGMA#515062
<function name="MountGMA" parent="game" type="libraryfunc">⤶
<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 <page>steamworks.Download</page>⤶
</description>⤶
<realm>Shared</realm>⤶
<args>⤶
<arg name="path" type="string">Location of the GMA file to mount, relative to the garrysmod directory</arg>⤶
</args>⤶
<rets>⤶
<ret name="" type="boolean">success</ret>⤶
<ret name="" type="table">If successful, a table of files that have been mounted</ret>⤶
</rets>⤶
</function>⤶
⤶
<example>⤶
<description>Downloads the Playable Piano addon and mounts the content.</description>⤶
<code>⤶
steamworks.FileInfo( 104548572, function( result )⤶
steamworks.Download( result.fileid, true, function( name )⤶
game.MountGMA( name )⤶
end) ⤶
end)⤶
</code>⤶
⤶
</example>