Garry's Mod Wiki

steamworks.Subscribe

  steamworks.Subscribe( string workshopItemID )

Description

This is used internally - although you're able to use it you probably shouldn't.

Subscribes to the specified workshop addon. Call steamworks.ApplyAddons afterwards to update.

Arguments

1 string workshopItemID
The ID of the Steam Workshop item we should subscribe to

Example

Subscribes to the Gm_construct_Beta Steam Workshop addon and reloads addons afterwards

Output: Subscribes to gm_construct_beta addon, if not already.