Workshop Addon Error

Does anyone know why my servers are returning "Unknown command “resource.AddWorkshop”? They worked fine before!

How are you running it? That error makes me thing you are running it as a server convar and not a lua function.

How would I tell?

I’m asking how are you calling the function? In a lua file? If so, where and what is your code?

This is my code and it is in autorun/server/workshop.lua
[lua]
resource.AddWorkshop( “180507408” ) – FA:S 2.0 Alpha SWEPs
resource.AddWorkshop( “201027186” ) – FA:S 2.0 Alpha SWEPs - Misc
resource.AddWorkshop( “105115318” ) – Fading Doors
resource.AddWorkshop( “108424005” ) – Keypad Tool and Cracker with Wire Support
resource.AddWorkshop( “109643223” ) – Textscreens (as seen on SammyServers.com)
resource.AddWorkshop( “213276429” ) – Robber Player Model
resource.AddWorkshop( “220336312” ) – PermaProps
resource.AddWorkshop( “149737736” ) – AntiPlayerStuck
resource.AddWorkshop( “245482078” ) – Empty Hands Swep
resource.AddWorkshop( “112806637” ) – GMod Legs
resource.AddWorkshop( “151830991” ) – Spawnable Kevlar Armor
resource.AddWorkshop( “278027183” ) – Breaching Charge SWEP
resource.AddWorkshop( “121961644” ) – NYPD 1940"s Model-Group
resource.AddWorkshop( “189009737” ) – K-Dog and Mac Daddy Eli
resource.AddWorkshop( “271244662” ) – Watch Dogs Phone
resource.AddWorkshop( “169011381” ) – Security Guard Playermodels
resource.AddWorkshop( “181283903” ) – FA:S 2.0 Alpha SWEPS - Pistols
resource.AddWorkshop( “201027715” ) – FA:S 2.0 Alpha SWEPs - U. Rifles
resource.AddWorkshop( “181656972” ) – FA:S 2.0 Alpha SWEPs - Rifles
resource.AddWorkshop( “183139624” ) – FA:S 2.0 Alpha SWEPs - SMGs
resource.AddWorkshop( “183140076” ) – FA:S 2.0 Alpha SWEPs - Shotguns
resource.AddWorkshop( “104482086” ) – [Official] Precision Tool
resource.AddWorkshop( “104479831” ) – Stacker STool
resource.AddWorkshop( “186588221” ) – Metro Last Light Citizens
resource.AddWorkshop( “200318235” ) – ARCBank Content
resource.AddWorkshop( “104548572” ) – Playable Piano
resource.AddWorkshop( “108176967” ) – The sit anywhere script!
resource.AddWorkshop( “112986621” ) – Drugs Mod
resource.AddWorkshop( “216408135” ) – GTA 5 Playermodels
resource.AddWorkshop( “148628139” ) – Daft Punk Player Models
resource.AddWorkshop( “184927431” ) – APAnti : An Advanced Anti-Prop Kill!
resource.AddWorkshop( “251645873” ) – Batclaw SWEP
resource.AddWorkshop( “248725380” ) – Superhero Playermodels
resource.AddWorkshop( “249177767” ) – SmartSnap Fixed!
resource.AddWorkshop( “181480134” ) – ImBrokeRU"s Paincake Knife SWEP
resource.AddWorkshop( “251070018” ) – ARCSlots Content
resource.AddWorkshop( “247735106” ) – Mortal Kombat Arcade Machine
resource.AddWorkshop( “116690393” ) – Gas Can
resource.AddWorkshop( “295788137” ) – WATCH_DOGS: Aiden Pearce Playermodel
resource.AddWorkshop( “106516163” ) – PlayX v2.8.11
resource.AddWorkshop( “299444899” ) – Badasses
resource.AddWorkshop( “196980498” ) – rp_evocity_v33x Missing Textures
resource.AddWorkshop( “180495527” ) – Content for RP_EvoCity_v33x (models and materials)
resource.AddWorkshop( “234881901” ) – RP_EVOCITY_V33X MISSING CONTENT
resource.AddWorkshop( “210637861” ) – RP_Evocity_v33x Material fix.
resource.AddWorkshop( “136126420” ) – Kitano Hydros Techno SCar
resource.AddWorkshop( “118902586” ) – Ford Fiesta - Ken Block (SCars)
resource.AddWorkshop( “180143947” ) – Battlefield 3: End Game - Dirt Bike (SCars)
resource.AddWorkshop( “254407244” ) – PAYDAY2 Van SCar
resource.AddWorkshop( “104483020” ) – SCars Slim
resource.AddWorkshop( “104487316” ) – SCars Basic
resource.AddWorkshop( “104492363” ) – SCars Extra
resource.AddWorkshop( “106926982” ) – Bike for SCars 2.0
resource.AddWorkshop( “294231229” ) – GTA IV Infernus (SCar)
resource.AddWorkshop( “146859249” ) – Batmans Scars
resource.AddWorkshop( “130227747” ) – SligWolf"s Bus and BendyBus
resource.AddWorkshop( “247055695” ) – Sickness- Tow truck and Van
resource.AddWorkshop( “173918660” ) – Eclipse DarkRP Tow Truck
resource.AddWorkshop( “248643568” ) – Shrek Playermodel
resource.AddWorkshop( “111412589” ) – Star Wars Lightsabers
resource.AddWorkshop( “160059572” ) – [200K SUBSCRIBES!] Finn the Human & BMO NPC and PLAYER MODEL
resource.AddWorkshop( “185951327” ) – rp_evocity_v33x
resource.AddWorkshop( “156545974” ) – Slenderman Playermodel
resource.AddWorkshop( “105142403” ) – SligWolf`s Blue-X11
resource.AddWorkshop( “122248418” ) – SligWolf"s Blue-X13
resource.AddWorkshop( “232636218” ) – PMC playermodels
resource.AddWorkshop( “274555791” ) – Suits and Robbers Player Models
resource.AddWorkshop( “107411755” ) – FBI Playermodels
resource.AddWorkshop( “150404359” ) – GMod Tower: Player Model Pack
resource.AddWorkshop( “299551243” ) – MBilliards
[/lua]

Possibly an Incorrect Workshop ID? I feel this is a dumb suggestion. And if it is not then I feel bad for you for having to look through all those addons.

Its not…I used http://configcreator.com/gmodresources.php

Then that error has nothing to do with that file.

Well then does anyone know why I am getting the errors then?

It would be helpful if you told us where you got the errors from, what exactly they look like, preferably a screenshot.

Can you try temporarily removing all of your addons and seeing if the error still appears? Just put all of the legacy addons in a disabled folder in garrysmod/garrymod/ and remove the +host_workshop_collection.

I think im just going to remove them one by one and see which one is the faulty one :stuck_out_tongue: Thanks for all of your help guys :slight_smile: