Garry's Mod Wiki

Garry's Mod Wiki

  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.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...