Garry's Mod Wiki

Revision Difference

Global.AddonMaterial#528987

<function name="AddonMaterial" parent="Global" type="libraryfunc"> <description> Loads the specified image from the /cache folder, used in combination <page>steamworks.Download</page>. Most addons will provide a 512x512 png image.⤶ Loads the specified image from the `/cache` folder, used in combination <page>steamworks.Download</page>. 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> <ret name="" type="IMaterial">The material, returns `nil` if the cached file is not an image.</ret> </rets> </function>