resource.AddWorkshop



resource.AddWorkshop("160250458")
resource.AddWorkshop("181009590")
resource.AddWorkshop("163806212")
resource.AddWorkshop("113214164")
resource.AddWorkshop("109643223")
resource.AddWorkshop("104548572")
resource.AddWorkshop("104482086")
resource.AddWorkshop("104479831")
resource.AddWorkshop("106944414")
resource.AddWorkshop("108176967")
resource.AddWorkshop("106516163")


That is my resouce.lua file. It is in the garrysmod/lua/autorun directory. I have tried it in the garrysmod/lua/autorun/server directory.
Even if I load into the server, these addons don’t initialize. I need help it’s really stressing me out I don’t know what to do

E:

Okay the addons now load onto the server however there is still this:



[ERROR] lua/autorun/resource.lua:1: attempt to call field 'AddWorkshop' (a nil value)
  1. unknown - lua/autorun/resource.lua:1


Move it from autorun to autorun/server. You’re essentially calling it on clientside and serverside, when it only exists serverside.