[Working] Slim and Basic SCars 2.0 resource.AddSingleFile and AddDir (FULL)

Hello guys, I took my time to write this and it worked.
If you have any problem with your FastDL to download SCars, follow these steps.

I will add SCars full download list if you want to.

**
1.) Make a blank file called ‘AddDir.lua’ in the path ‘lua/autorun/server/’
2.) Put this code in the file you just created.
**
[lua]
function resource.AddDir(dir)
dir = string.Replace(dir,"\\", “/”)
dir = string.Replace(dir, “\”, “/”)

local files, dirs = file.Find(dir.."/*", "GAME")

for k, v in pairs(dirs) do
    resource.AddDir(dir.."/"..v)
end

for k, v in pairs(files) do
    local realpath = dir.."/"..v

    if(string.find(realpath, "addons", nil, false) ~= nil) then
        local path_array = string.Explode("/", dir.."/"..v)
        table.remove(path_array, 1)
        table.remove(path_array, 1)

        realpath = string.Implode("/", path_array)
    end

    resource.AddFile(realpath)
end

end

resource.AddDir(“models/gas_station”)
resource.AddDir(“models/borderlands/bus”)
resource.AddDir(“models/dean/gtaiv/vehicles”)
resource.AddDir(“models/diprip/chaos126p”)
resource.AddDir(“models/diprip/hedgehog”)
resource.AddDir(“models/diprip/ratmobile”)
resource.AddDir(“models/seat_m”)
resource.AddDir(“models/splayn”)
resource.AddDir(“models/splayn/cars”)
resource.AddDir(“models/tiggomods/vehicles”)
resource.AddDir(“models/vigilante8/vigalante8”)
–bobcat & bobcatw
resource.AddSingleFile(“models/bobcat.mdl”)
resource.AddSingleFile(“models/bobcat.dx80.vtx”)
resource.AddSingleFile(“models/bobcat.dx90.vtx”)
resource.AddSingleFile(“models/bobcat.phy”)
resource.AddSingleFile(“models/bobcat.sw.vtx”)
resource.AddSingleFile(“models/bobcat.vvd”)
–w
resource.AddSingleFile(“models/bobcatw.mdl”)
resource.AddSingleFile(“models/bobcawt.dx80.vtx”)
resource.AddSingleFile(“models/bobcawt.dx90.vtx”)
resource.AddSingleFile(“models/bobcawt.phy”)
resource.AddSingleFile(“models/bobcawt.sw.vtx”)
resource.AddSingleFile(“models/bobcawt.vvd”)
–end of bobcat
–delorean_prop
resource.AddSingleFile(“models/delorean_prop.mdl”)
resource.AddSingleFile(“models/delorean_prop.dx80.vtx”)
resource.AddSingleFile(“models/delorean_prop.dx90.vtx”)
resource.AddSingleFile(“models/delorean_prop.phy”)
resource.AddSingleFile(“models/delorean_prop.sw.vtx”)
resource.AddSingleFile(“models/delorean_prop.vvd”)
–end of delorean_prop

–huntley1 & huntleyw
–1
resource.AddSingleFile(“models/huntley1.mdl”)
resource.AddSingleFile(“models/huntley1.dx80.vtx”)
resource.AddSingleFile(“models/huntley1.dx90.vtx”)
resource.AddSingleFile(“models/huntley1.phy”)
resource.AddSingleFile(“models/huntley1.sw.vtx”)
resource.AddSingleFile(“models/huntley1.vvd”)
resource.AddSingleFile(“models/huntley1.xbox.vtx”)
–W
resource.AddSingleFile(“models/huntleyw.mdl”)
resource.AddSingleFile(“models/huntleyw.dx80.vtx”)
resource.AddSingleFile(“models/huntleyw.dx90.vtx”)
resource.AddSingleFile(“models/huntleyw.phy”)
resource.AddSingleFile(“models/huntleyw.sw.vtx”)
resource.AddSingleFile(“models/huntleyw.vvd”)
–end of huntley

–sabregt
resource.AddSingleFile(“models/sabregt_sep.mdl”)
resource.AddSingleFile(“models/sabregt_sep.dx80.vtx”)
resource.AddSingleFile(“models/sabregt_sep.dx90.vtx”)
resource.AddSingleFile(“models/sabregt_sep.phy”)
resource.AddSingleFile(“models/sabregt_sep.sw.vtx”)
resource.AddSingleFile(“models/sabregt_sep.vvd”)
resource.AddSingleFile(“models/sabregt_sep.xbox.vtx”)
–end of sabregt

–studebaker
resource.AddSingleFile(“models/studebaker_wh.mdl”)
resource.AddSingleFile(“models/studebaker_wh.vvd”)
resource.AddSingleFile(“models/studebaker_wh.sw.vtx”)
resource.AddSingleFile(“models/studebaker_wh.dx80.vtx”)
resource.AddSingleFile(“models/studebaker_wh.dx90.vtx”)
resource.AddSingleFile(“models/studebaker_wh.phy”)
–end of studebaker

–Taxi
resource.AddSingleFile(“models/taxi1.mdl”)
resource.AddSingleFile(“models/taxi1.xbox.vvd”)
–end of taxi

resource.AddDir(“sound/advanced_engine_sounds”)
resource.AddDir(“sound/car”)
resource.AddDir(“sound/carstools”)
resource.AddDir(“sound/geareffectsounds”)
resource.AddDir(“sound/racemusic”)
resource.AddDir(“sound/scarhorns”)
resource.AddDir(“sound/scartank”)
resource.AddDir(“sound/tire”)
resource.AddDir(“sound/vehicles”)
resource.AddDir(“resource/fonts”)
resource.AddDir(“materials/gui”)
resource.AddDir(“materials/models”)
resource.AddDir(“materials/scarhud”)
resource.AddDir(“materials/scarmisc”)
resource.AddDir(“materials/scartank”)
resource.AddDir(“materials/vgui”)
resource.AddDir(“materials/weapons”)
resource.AddDir(“materials/splayn”)

resource.AddSingleFile(“models/player/smith.mdl”)
resource.AddSingleFile(“models/player/smith.dx80.vtx”)
resource.AddSingleFile(“models/player/smith.dx90.vtx”)
resource.AddSingleFile(“models/player/smith.phy”)
resource.AddSingleFile(“models/player/smith.sw.vtx”)
resource.AddSingleFile(“models/player/smith.vvd”)
[/lua]

Credits:
99% Maker(s) of SCars.
1% Making this.

Someone still uses Scars? I mean…you do realise they drive like if they were applyforced in e2 (they turn/rotate from the center of mass making it impossible to make a small turn)

I don’t know, look in his thread… there are many new recent posts