Garry's Mod Wiki

steamworks.DownloadUGC

void steamworks.DownloadUGC( string workshopID, function resultCallback )

Description

Downloads a Steam Workshop file by its ID and returns a path to it.

Arguments

1 string workshopID
The ID of workshop item to download. NOT a file ID.
2 function resultCallback
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.

Example

Downloads the Fire Extinguisher addon from Steam Workshop prints path to its .gma file to be used with game.MountGMA.

steamworks.DownloadUGC( 104607228, function( name ) print( name ) end)

Page Links


Special Pages


Wikis

?

Render Time: 24ms

Session 0
DB GetPage 4
Generate Html 4
SaveChanges 8
Render Body 0
Render Sidebar 6