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.

Page Links


Special Pages


Wikis

?

Render Time: 30ms

Session 0
DB GetPage 4
Generate Html 5
SaveChanges 8
Render Body 0
Render Sidebar 6