Advertisement
Guest User

Untitled

a guest
Mar 29th, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. if SERVER then
  2. print("-------------------------------")
  3. print("Goofball's Auto Workshop Adder")
  4. print("-------------------------------")
  5. 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.")
  6. print("-------------------------------")
  7. for _, addon in pairs(engine.GetAddons())do
  8. if addon.mounted == true and addon.downloaded == true then
  9. if tostring(addon.wsid) == "0" then
  10. print("-------------------------------")
  11. print("WARNING:")
  12. 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.")
  13. print("-------------------------------")
  14. else
  15. print(addon.title .. ": " .. tostring(addon.wsid))
  16. resource.AddWorkshop(tostring(addon.wsid))
  17. end
  18. end
  19. end
  20. print("-------------------------------")
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement