Garry's Mod Wiki

steamworks.Unsubscribe

  steamworks.Unsubscribe( string workshopItemID )

Description

This is used internally - although you're able to use it you probably 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

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

Example

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

Output: Unsubscribes from the gm_construct_beta addon, if subscribed.