recourse.AddWorkshop lua error

[ERROR] lua/autorun/force_download.lua:1: attempt to call field ‘AddWorkshop’ (a nil value)

  1. unknown - lua/autorun/force_download.lua:1

resource.AddWorkshop( "274555791" )
resource.AddWorkshop( "348649297" )


sorry im kind of new to this

You put them like that, and then you put the files in “lua/autorun/server”

That code works just fine. Just put the file under lua/autorun/server

Are you saying his problem is because he put a space between the string and the parenthesis?

Yes you have to put it like this, otherwise the entire Lua engine becomes corrupt and you can never use lua again!



resource.AddWorkshop(                "123456")


[sp]It’s a joke[/sp]

Read this http://wiki.garrysmod.com/page/resource/AddWorkshop

What you have is right, just put it in /lua/autorun/server/