Garry's Mod Wiki

Revision Difference

GM:WorkshopDownloadFile#525186

<function name="WorkshopDownloadFile" parent="GM" type="hook"> <ishook>yes</ishook> <description>Called when an addon from the Steam workshop begins downloading. Used by default to place details on the workshop downloading panel.</description> <realm>Menu</realm> <predicted>No</predicted> <file line="21-30">lua/menu/mount/mount.lua</file> <args> <arg name="id" type="number">Workshop ID of addon.</arg> <arg name="imageID" type="number">ID of addon's preview image. For example, for **Extended Spawnmenu** addon, the image URL is ``` &amp;lt;nowiki&amp;gt;http://cloud-4.steamusercontent.com/ugc/702859018846106764/9E7E1946296240314751192DA0AD15B6567FF92D/&amp;lt;/nowiki&amp;gt;⤶ http://cloud-4.steamusercontent.com/ugc/702859018846106764/9E7E1946296240314751192DA0AD15B6567FF92D/⤶ ``` So, the value of this argument would be **702859018846106764**.</arg> <arg name="title" type="string">Name of addon.</arg> <arg name="size" type="number">File size of addon in bytes.</arg> </args> </function>