Force Download

I’ve been trying to get force download to work on my server. Though, no matter what, I sadly can not fix the problems I am having. The lua codes that I have tried using are:

One that I’ve tried is:
function AddDir(dir) // recursively adds everything in a directory to be downloaded by client
local list = file.FindDir("…/"…dir…"/*")
for _, fdir in pairs(list) do
if fdir != “.svn” then // don’t spam people with useless .svn folders
AddDir(dir…"/"…fdir)
end
end

for k,v in pairs(file.Find("…/"…dir…"/*")) do
resource.AddFile(dir…"/"…v)
end
end

AddDir(“models\wystan\attachments”)
AddDir(“materials\gcellmats”)
AddDir(“materials\models\wystan\attachments”)
resource.AddFile( “materials\sprites\frostbreath.vmt” )
AddDir(“Materials/models/player/”)
AddDir(“Materials/models/player/b4p/”)
AddDir(“Models/player/b4p/”)
resource.AddFile(“Models/hk-47.mdl”)
AddDir(“Materials/Models/hk47/”)

Another I’ve tried is:
resource.AddSingleFile(“Models/player/b4p/b4p_c3po.dx80”)
resource.AddSingleFile(“Models/player/b4p/b4p_c3po.dx90”)
resource.AddSingleFile(“Models/player/b4p/b4p_c3po.mdl”)
resource.AddSingleFile(“Models/player/b4p/b4p_c3po.phy”)
resource.AddSingleFile(“Models/player/b4p/b4p_c3po.sw”)
resource.AddSingleFile(“Models/player/b4p/b4p_c3po.vvd”)
resource.AddSingleFile(“Materials/models/player/b4p/c3po/c3po_arm_torso.vmt”)
resource.AddSingleFile(“Materials/models/player/b4p/c3po/c3po_arm_torso.vtf”)
resource.AddSingleFile(“Materials/models/player/b4p/c3po/c3po_face.vmt”)
resource.AddSingleFile(“Materials/models/player/b4p/c3po/c3po_face.vtf”)
resource.AddSingleFile(“Materials/models/player/b4p/c3po/c3po_hand.vmt”)
resource.AddSingleFile(“Materials/models/player/b4p/c3po/c3po_hand.vtf”)
resource.AddSingleFile(“Materials/models/player/b4p/c3po/c3po_leg.vmt”)
resource.AddSingleFile(“Materials/models/player/b4p/c3po/c3po_leg.vtf”)
resource.AddSingleFile(“Models/player/b4p/stormt.dx80”)
resource.AddSingleFile(“Models/player/b4p/stormt.dx90”)
resource.AddSingleFile(“Models/player/b4p/stormt.mdl”)
resource.AddSingleFile(“Models/player/b4p/stormt.phy”)
resource.AddSingleFile(“Models/player/b4p/stormt.sw”)
resource.AddSingleFile(“Models/player/b4p/stormt.vvd”)
resource.AddSingleFile(“Materials/models/player/b4p/stormt/armor.vmt”)
resource.AddSingleFile(“Materials/models/player/b4p/stormt/armor.vtf”)
resource.AddSingleFile(“Materials/models/player/b4p/stormt/helmet.vmt”)
resource.AddSingleFile(“Materials/models/player/b4p/stormt/helmet.vtf”)
resource.AddSingleFile(“Materials/models/player/b4p/stormt/shoulder.vmt”)
resource.AddSingleFile(“Materials/models/player/b4p/stormt/shoulder.vtf”)
resource.AddSingleFile(“Materials/models/player/b4p/stormt/torso_legs.vmt”)
resource.AddSingleFile(“Materials/models/player/b4p/stormt/torso_lets.vtf”)
resource.AddSingleFile(“Models/HK-47.dx80”)
resource.AddSingleFile(“Models/HK-47.dx90”)
resource.AddSingleFile(“Models/hk-47.mdl”)
resource.AddSingleFile(“Models/Hhk-47.phy”)
resource.AddSingleFile(“Models/HK-47.sw”)
resource.AddSingleFile(“Models/hk-47.vvd”)
resource.AddSingleFile(“Models/HK-47.xbox”)
resource.AddSingleFile(“Materials/Models/hk47/hk47_body.vmt”)
resource.AddSingleFile(“Materials/Models/hk47/hk47_body.vtf”)
resource.AddSingleFile(“Materials/Models/hk47/hk47_body_n.vtf”)

So any help would be nice.
Server host I’m using is Xenon. (Oh my, their support is horid.)

Use: resource.AddFile & Make sure its part of your init.lua

Well technically I have tried resource.addfile but just don’t have an example of it since it was basically just what is shown above.