[ERROR] lua/autorun/force_download.lua:1: attempt to call field 'AddWorkshop' (a nil value)
1. unknown - lua/autorun/force_download.lua:1
[code]resource.AddWorkshop( "274555791" )
resource.AddWorkshop( "348649297" )
[/code]
sorry im kind of new to this
[QUOTE]resource.AddWorkshop("144852369")
resource.AddWorkshop("227312918")
resource.AddWorkshop("259358575")
resource.AddWorkshop("153105840")
resource.AddWorkshop("108922813")
resource.AddWorkshop("169011381")[/QUOTE]
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
[QUOTE=MoltoCraft;46607261]You put them like that, and then you put the files in "lua/autorun/server"[/QUOTE]
Are you saying his problem is because he put a space between the string and the parenthesis?
[QUOTE=Exho;46620597]Are you saying his problem is because he put a space between the string and the parenthesis?[/QUOTE]
Yes you have to put it like this, otherwise the entire Lua engine becomes corrupt and you can never use lua again!
[code]
resource.AddWorkshop( "123456")
[/code]
[sp]It's a joke[/sp]
Read this [url]http://wiki.garrysmod.com/page/resource/AddWorkshop[/url]
What you have is right, just put it in /lua/autorun/server/
Sorry, you need to Log In to post a reply to this thread.