Garry's Mod Wiki

Garry's Mod Wiki

  IMaterial AddonMaterial( string name )

Description

Loads the specified image from the /cache folder, used in combination with steamworks.Download. Most addons will provide a 512x512 png image.

This works with any image file with the .cache file extension, even outside of the /cache folder.

Arguments

1 string name
The name of the file.

Returns

1 IMaterial
The material, returns nil if the cached file is not an image.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...