1. Sign up for news, events and more!

    You're currently visiting the official DarkRP Forums as a guest. Sign up now to participate in our community and we'll let you know when we have news.

FastDL script

Discussion in 'DarkRP Modding Questions & Help' started by Dave Strider, Jan 15, 2014.

  1. Dave Strider

    Dave Strider Member

    this is the script i have for fast dl but it doesnt work

    Code (Text):
    resource.addworkshop ("175983422")
    resource.addworkshop ("195481065")
    resource.addworkshop ("173923845")
    resource.addworkshop ("133342076")
    resource.addworkshop ("195813604")
    resource.addworkshop ("191412471")
    resource.addworkshop ("198142365")
    resource.addworkshop ("128091208")
    resource.addworkshop ("128093075")
    end)
     
    why not
     
  2. Suspeccct

    Suspeccct Member

    Place that .lua file in lua/autorun/server. You can remove that "end)" as you don't need it.
     
  3. Dave Strider

    Dave Strider Member

    then this just comes up in the console
    [ERROR] lua/autorun/server/forcedownloads.lua:1: attempt to call field 'addworkshop' (a nil value)
    1. unknown - lua/autorun/server/forcedownloads.lua:1
     
  4. Suspeccct

    Suspeccct Member

    It should be
    resource.AddWorkshop( "id" ) --- With a capital A
     
  5. Dave Strider

    Dave Strider Member

    sameith the the Resource with a capital R ? and workshop with a capital W?
     
  6. Suspeccct

    Suspeccct Member

    Example workshop : resource.AddWorkshop( "id" )
    Example fastdl : resource.AddFile("model/path")
     

Share This Page