Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if SERVER then
- print("-------------------------------")
- print("Goofball's Auto Workshop Adder")
- print("-------------------------------")
- print("HEADS UP:\nThe first time you install this, some or all addons may be marked with warnings.\nIf this occurs, just restart the server.\nYou will need to start the server twice for new addons\nin order for them to initialize.\nThis is due to a bug with GMOD, which will hopefully be fixed sometime soon.")
- print("-------------------------------")
- for _, addon in pairs(engine.GetAddons())do
- if addon.mounted == true and addon.downloaded == true then
- if tostring(addon.wsid) == "0" then
- print("-------------------------------")
- print("WARNING:")
- print("The addon '" .. addon.title .. "' was either invalid or doesn't exist. \nRestart the server for a proper mount, if the addon does indeed exist.")
- print("-------------------------------")
- else
- print(addon.title .. ": " .. tostring(addon.wsid))
- resource.AddWorkshop(tostring(addon.wsid))
- end
- end
- end
- print("-------------------------------")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement