Resource file wont download

Hey Guys,

I am currently using (Customizable Weaponry) for the guns on my server & i need to have the attachments download because they are errors if there not.

So I made a “Resource_file.lua” and put all the files that need to be downloaded & everything downloads except the (.mdl) files

PLEASE HELP ):

Post code.

/*
resource.AddSingleFile(“models/wystan/attachments/acog.mdl”)
resource.AddSingleFile(“models/wystan/attachments/aimpoint.mdl”)
resource.AddSingleFile(“models/wystan/attachments/akrailmount.mdl”)
resource.AddSingleFile(“models/wystan/attachments/doctorrds.mdl”)
resource.AddSingleFile(“models/wystan/attachments/eotech557sight.mdl”)
resource.AddSingleFile(“models/wystan/attachments/foregrip1.mdl”)
resource.AddSingleFile(“models/wystan/attachments/m203.mdl”)
resource.AddSingleFile(“models/wystan/attachments/rail.mdl”)
resource.AddFile(“models/wystan/cmag.mdl”)
resource.AddSingleFile(“models/wystan/Cmag.dx80.vtx”)
resource.AddSingleFile(“models/wystan/Cmag.dx90.vtx”)
resource.AddSingleFile(“models/wystan/Cmag.phy”)
resource.AddSingleFile(“models/wystan/Cmag.sw.vtx”)
resource.AddSingleFile(“models/wystan/cmag.vvd”)
resource.AddSingleFile(“models/wystan/materials/models/wystan”)
*/

/*
resource.AddFile(“materials/models/bunneh/silencer.vmt”)
resource.AddFile(“materials/models/bunneh/silencer.vtf”)
resource.AddFile(“materials/models/bunneh/silencernormal.vtf”)
*/

resource.AddFile(“materials/gcellmats/crosspart_lower.vmt”)
resource.AddFile(“materials/gcellmats/crosspart_lower.vtf”)
resource.AddFile(“materials/gcellmats/crosspart_upper.vmt”)
resource.AddFile(“materials/gcellmats/crosspart_upper.vtf”)
resource.AddFile(“materials/gcellmats/scope_rifle2.vmt”)
resource.AddFile(“materials/gcellmats/scope_rifle2.vtf”)
resource.AddFile(“materials/models/bunneh/silencer.vmt”)
resource.AddFile(“materials/models/bunneh/silencer.vtf”)
resource.AddFile(“materials/models/bunneh/silencernormal.vtf”)
resource.AddFile(“materials/models/wystan/attachments/acog/acog.vmt”)
resource.AddFile(“materials/models/wystan/attachments/acog/acog.vtf”)
resource.AddFile(“materials/models/wystan/attachments/acog/lense.vmt”)
resource.AddFile(“materials/models/wystan/attachments/acog/lense.vtf”)
resource.AddFile(“materials/models/wystan/attachments/aimpoint/aim1.vmt”)
resource.AddFile(“materials/models/wystan/attachments/aimpoint/aim2.vmt”)
resource.AddFile(“materials/models/wystan/attachments/aimpoint/aim1.vtf”)
resource.AddFile(“materials/models/wystan/attachments/aimpoint/aim2.vtf”)
resource.AddFile(“materials/models/wystan/attachments/AKRail/newscope.vmt”)
resource.AddFile(“materials/models/wystan/attachments/AKRail/newscope.vtf”)
resource.AddFile(“materials/models/wystan/attachments/Doctor/frame1.vmt”)
resource.AddFile(“materials/models/wystan/attachments/Doctor/frame1.vtf”)
resource.AddFile(“materials/models/wystan/attachments/EoTech/557.vmt”)
resource.AddFile(“materials/models/wystan/attachments/EoTech/557.vtf”)
resource.AddFile(“materials/models/wystan/attachments/Foregrip1/vert.vmt”)
resource.AddFile(“materials/models/wystan/attachments/Foregrip1/vert.vtf”)
resource.AddFile(“materials/models/wystan/attachments/Foregrip1/vert_normal.vtf”)
resource.AddFile(“materials/models/wystan/attachments/M203/m203.vmt”)
resource.AddFile(“materials/models/wystan/attachments/M203/m203.vtf”)
resource.AddFile(“materials/models/wystan/Cmag/bBULLET.vmt”)
resource.AddFile(“materials/models/wystan/Cmag/bbullet.vtf”)
resource.AddFile(“materials/models/wystan/Cmag/cmag.vmt”)
resource.AddFile(“materials/models/wystan/Cmag/cmag.vtf”)
resource.AddFile(“materials/models/wystan/Cmag/cmag_ref.vtf”)
resource.AddFile(“materials/sprites/acog_tri.vmt”)
resource.AddFile(“materials/sprites/acog_tri.vtf”)
resource.AddFile(“materials/sprites/crosshair_gl.vtf”)
resource.AddFile(“materials/sprites/eotech_reddot.vmt”)
resource.AddFile(“materials/sprites/eotech_reddot.vtf”)
resource.AddFile(“materials/sprites/frostbreath.vmt”)
resource.AddFile(“materials/sprites/frostbreath.vtf”)
resource.AddFile(“materials/sprites/scope_reddot.vmt”)
resource.AddFile(“materials/vgui/bullet.vmt”)
resource.AddFile(“materials/vgui/bullet.vtf”)
resource.AddFile(“materials/vgui/entities/upgr_acog.vmt”)
resource.AddFile(“materials/vgui/entities/upgr_acog.vtf”)
resource.AddFile(“materials/vgui/entities/upgr_aimpoint.vmt”)
resource.AddFile(“materials/vgui/entities/upgr_aimpoint.vtf”)
resource.AddFile(“materials/vgui/entities/upgr_eotech557.vmt”)
resource.AddFile(“materials/vgui/entities/upgr_eotech557.vtf”)
resource.AddFile(“materials/vgui/entities/upgr_railmount.vmt”)
resource.AddFile(“materials/vgui/entities/upgr_railmount.vtf”)
resource.AddFile(“materials/vgui/entities/upgr_reflexsight.vmt”)
resource.AddFile(“materials/vgui/entities/upgr_reflexsight.vtf”)
resource.AddFile(“models/wystan/attachments/acog.dx80.vtx”)
resource.AddFile(“models/wystan/attachments/acog.dx90.vtx”)
resource.AddFile(“models/wystan/attachments/acog.phy”)
resource.AddFile(“models/wystan/attachments/acog.sw.vtx”)
resource.AddFile(“models/wystan/attachments/aimpoint.dx80.vtx”)
resource.AddFile(“models/wystan/attachments/aimpoint.dx90.vtx”)
resource.AddFile(“models/wystan/attachments/aimpoint.phy”)
resource.AddFile(“models/wystan/attachments/aimpoint.sw.vtx”)
resource.AddFile(“models/wystan/attachments/aimpoint.vvd”)
resource.AddFile(“models/wystan/attachments/akrailmount.dx80.vtx”)
resource.AddFile(“models/wystan/attachments/akrailmount.dx90.vtx”)
resource.AddFile(“models/wystan/attachments/akrailmount.phy”)
resource.AddFile(“models/wystan/attachments/akrailmount.sw.vtx”)
resource.AddFile(“models/wystan/attachments/akrailmount.vvd”)
resource.AddFile(“models/wystan/attachments/doctorrds.dx80.vtx”)
resource.AddFile(“models/wystan/attachments/doctorrds.dx90.vtx”)
resource.AddFile(“models/wystan/attachments/doctorrds.phy”)
resource.AddFile(“models/wystan/attachments/doctorrds.sw.vtx”)
resource.AddFile(“models/wystan/attachments/doctorrds.vvd”)
resource.AddFile(“models/wystan/attachments/eotech557sight.dx80.vtx”)
resource.AddFile(“models/wystan/attachments/eotech557sight.dx90.vtx”)
resource.AddFile(“models/wystan/attachments/eotech557sight.phy”)
resource.AddFile(“models/wystan/attachments/eotech557sight.sw.vtx”)
resource.AddFile(“models/wystan/attachments/eotech557sight.vvd”)
resource.AddFile(“models/wystan/attachments/Foregrip1.dx80.vtx”)
resource.AddFile(“models/wystan/attachments/Foregrip1.dx90.vtx”)
resource.AddFile(“models/wystan/attachments/Foregrip1.phy”)
resource.AddFile(“models/wystan/attachments/Foregrip1.sw.vtx”)
resource.AddFile(“models/wystan/attachments/Foregrip1.vvd”)
resource.AddFile(“models/wystan/attachments/m203.dx80.vtx”)
resource.AddFile(“models/wystan/attachments/m203.dx90.vtx”)
resource.AddFile(“models/wystan/attachments/m203.phy”)
resource.AddFile(“models/wystan/attachments/m203.sw.vtx”)
resource.AddFile(“models/wystan/attachments/m203.vvd”)
resource.AddFile(“models/wystan/attachments/Rail.dx80.vtx”)
resource.AddFile(“models/wystan/attachments/Rail.dx90.vtx”)
resource.AddFile(“models/wystan/attachments/Rail.phy”)
resource.AddFile(“models/wystan/attachments/Rail.sw.vtx”)
resource.AddFile(“models/wystan/attachments/Rail.vvd”)
resource.AddFile(“models/wystan/cmag.mdl”)
resource.AddSingleFile(“models/wystan/Cmag.dx80.vtx”)
resource.AddSingleFile(“models/wystan/Cmag.dx90.vtx”)
resource.AddSingleFile(“models/wystan/Cmag.phy”)
resource.AddSingleFile(“models/wystan/Cmag.sw.vtx”)
resource.AddSingleFile(“models/wystan/cmag.vvd”)
resource.AddSingleFile(“models/wystan/materials/models/wystan”)
resource.AddSingleFile(“sound/weapons/cstm/attach_attachment.mp3”)

[LUA]resource.AddFile(“models/wystan/attachments/akrailmount.dx80.vtx”)
resource.AddFile(“models/wystan/attachments/akrailmount.dx90.vtx”)
resource.AddFile(“models/wystan/attachments/akrailmount.phy”)
resource.AddFile(“models/wystan/attachments/akrailmount.sw.vtx”)
resource.AddFile(“models/wystan/attachments/akrailmount.vvd”)[/LUA]

Do you see a .mdl file in there, or ANYWHERE?

yea

acog.mdl
aimpoint.mdl
akrailmount.mdl
doctorrds.mdl
eotech557sight.mdl
foregrip1.mdl
m203.mdl
rail.mdl

Thats commented dude

You don’t need to add the .phy and .dx90.vtx because they’ll be included if the .mdl file is added.

We got a smart guy :v: lol, but I really didnt know that, prob because i dont mess will resources all that often

Most of your mdl downloads are commented out. Anything between /* and */ will not be ran when running the file.