steamworks.SetShouldMountAddon

From Garry's Mod
Jump to: navigation, search
 steamworks.SetShouldMountAddon( )

Contents

Description

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

Arguments

string workshopItemID

The ID of the Steam Workshop item we should enable/disable

Arguments

boolean shouldMount

true to enable the item, false to disable.

Examples

Example

Enables the Gm_construct_Beta Steam Workshop addon and reloads addons afterwards

steamworks.SetShouldMountAddon( 21197, true )
steamworks.ApplyAddons()

Output:

Enabled the gm_construct_beta addon, if installed.
Personal tools
Navigation