From Garry's Mod
(Difference between revisions)
Revision as of 16:04, 18 December 2019
Downloads a Steam Workshop file by its ID and returns a path to it. garrysmod/cache folder.
The ID of workshop item to download. NOT a file ID.
Will be removed
The function to process retrieved data. The first and only argument is a string, containing path to the saved file, or nil if the download failed to any reason.
steamworks.DownloadUGC( 104607228, function( name ) print( name ) end)