Garry's Mod Wiki

Revision Difference

GM:WorkshopDownloadProgress#511196

<function name="WorkshopDownloadProgress" parent="GM" type="hook">⤶ <ishook>yes</ishook>⤶ <description>Called while an addon from the Steam workshop is downloading. Used by default to update details on the fancy workshop download panel.</description>⤶ <realm>Menu</realm>⤶ <predicted>No</predicted>⤶ <file line="40-50">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&#x27;s preview image.&#xA;&#xA;&#xA;&#xA;For example, for **Extended Spawnmenu** addon, the image URL is&#xA;⤶ ```⤶ &amp;amp;lt;nowiki&amp;amp;gt;http://cloud-4.steamusercontent.com/ugc/702859018846106764/9E7E1946296240314751192DA0AD15B6567FF92D/&amp;amp;lt;/nowiki&amp;amp;gt;⤶ ```⤶ &#xA;So, the value of this argument would be **702859018846106764**.</arg>⤶ <arg name="title" type="string">Name of addon.</arg>⤶ <arg name="downloaded" type="number">Current bytes of addon downloaded.</arg>⤶ <arg name="expected" type="number">Expected file size of addon in bytes.</arg>⤶ </args>⤶ </function>⤶ ⤶