Garry's Mod Wiki

steamworks.Subscribe

void 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

steamworks.Subscribe( "21197" ) steamworks.ApplyAddons()
Output: Subscribes to gm_construct_beta addon, if not already.

Page Links


Special Pages


Wikis

?

Render Time: 156ms

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