• steamworks.SetShouldMountAddon not working. Is this is a Gmod bug?
    5 replies, posted
Hi, Facepunch! Here's the code: [CODE]steamworks.SetShouldMountAddon( addonID, true ) steamworks.ApplyAddons()[/CODE] It seems to return an error: [CODE]attempt to call field 'SetShouldMountAddon' (a nil value)[/CODE] I've already defined addonID, and I even tried the function by entering an addon ID manually as both a string and a number. Help would be appreciated. Thanks in Advance!
It's a menu state function. Its not a GMod bug. Servers cannot influence what subscribed addons are mounted or not.
[QUOTE=Robotboy655;52432578]It's a menu state function. Its not a GMod bug. Servers cannot influence what subscribed addons are mounted or not.[/QUOTE] Thank you for your reply. The thing is that I'm making an in-game downloader and I'm trying to make the game make use of addons that are subscribed to and disabled. When addons are disabled, the files are not mounted in the game; I would like to be able to re-enable these files, or at least force the client to use them while only playing on my server. Is there an efficient way to do this? Thanks in Advance!
if game.MountGMA or resource.AddWorkshop fails with addons that are subbed and disabled, then its more of a problem with the game and there's nothing you can do about it.
[QUOTE=Robotboy655;52433008]if game.MountGMA or resource.AddWorkshop fails with addons that are subbed and disabled, then its more of a problem with the game and there's nothing you can do about it.[/QUOTE] Sounds good, thank you for your help! :)
Although that doesn't sound that ethical, like if someone doesn't want to use your content don't force them Also as there can be good intentions, there can be bad intentions, imagine forcing people to download 2gb of TDM cars
Sorry, you need to Log In to post a reply to this thread.