steamworks.Subscribe

From Garry's Mod
Jump to: navigation, search
 steamworks.Subscribe( )

Contents

Description

This is an internal function or feature.
This means you will be able to use it, but you really shouldn't.

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

Arguments

string workshopItemID

The ID of the Steam Workshop item we should subscribe to

Examples

Example

Subscribes to the Gm_construct_Beta Steam Workshop addon and reloads addons afterwards

steamworks.Subscribe( "21197" )
steamworks.ApplyAddons()

Output:

Subscribes to gm_construct_beta addon, if not already.
Personal tools
Navigation