Garry's Mod Wiki

steamworks.SetShouldMountAddon

  steamworks.SetShouldMountAddon( string workshopItemID, boolean shouldMount )

Description

Sets if an addon should be enabled or disabled. Call steamworks.ApplyAddons afterwards to update.

Arguments

1 string workshopItemID
The ID of the Steam Workshop item we should enable/disable
2 boolean shouldMount
true to enable the item, false to disable.

Example

Enables the Gm_construct_Beta Steam Workshop addon and reloads addons afterwards

Output: Enabled the gm_construct_beta addon, if installed.