steamworks.Unsubscribe

From Garry's Mod
Revision as of 12:00, 23 January 2015 by Bo98 (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 steamworks.Unsubscribe( )

Contents

Description

This is an internal function or feature.
This means you will be able to use it, but you really shouldn't.
Unsubscribes to the specified workshop addon. Call steamworks.ApplyAddons afterwards to update.

This function should never be called without a user's consent and should not be called if the addon is currently in use (aka: the user is not in the main menu) as it may result in unexpected behaviour.

Arguments

string workshopItemID

The ID of the Steam Workshop item we should unsubscribe from.

Examples

Example

Unsubscribes from the Gm_construct_Beta Steam Workshop addon, if subscribed, and reloads addons afterwards

steamworks.Unsubscribe( 21197 )
steamworks.ApplyAddons()

Output:

Unsubscribes from the gm_construct_beta addon, if subscribed.
Personal tools
Navigation