Garry's Mod Wiki

Revision Difference

Global.AddonMaterial#514825

<function name="AddonMaterial" parent="Global" type="libraryfunc">⤶ <description>⤶ Loads the specified image from the /cache folder, used in combination <page>steamworks.Download</page>.&amp;lt;br /&amp;gt;⤶ Most addons will provide a 512x512 png image.⤶ </description>⤶ <realm>Client and Menu</realm>⤶ <args>⤶ <arg name="name" type="string">The name of the file.</arg>⤶ </args>⤶ <rets>⤶ <ret name="" type="IMaterial">The material, returns nil if the cached file is not an image.</ret>⤶ </rets>⤶ </function>⤶ ⤶