Help with resource.AddFile("")

So yeah, I have this kinda resource.AddFile genrator I found in facepunch which I can’t find thread at the mommet. But its not the problem.

The issue I am having is, I have this TTT and these people keep downloading these icons and weapons and shit over and over.

So I put every TTT content and our custom weapons on resource.AddFile.

Heres the code:
[lua]if SERVER then
resource.AddFile( “models/weapons/v_pist_usq.dx80.vtx” )
resource.AddFile( “models/weapons/v_pist_usq.dx90.vtx” )
resource.AddFile( “models/weapons/v_pist_usq.mdl” )
resource.AddFile( “models/weapons/v_pist_usq.sw.vtx” )
resource.AddFile( “models/weapons/v_pist_usq.vvd” )
resource.AddFile( “models/weapons/v_pist_usq.xbox.vtx” )
resource.AddFile( “models/weapons/v_rif_famaz.dx80.vtx” )
resource.AddFile( “models/weapons/v_rif_famaz.dx90.vtx” )
resource.AddFile( “models/weapons/v_rif_famaz.mdl” )
resource.AddFile( “models/weapons/v_rif_famaz.sw.vtx” )
resource.AddFile( “models/weapons/v_rif_famaz.vvd” )
resource.AddFile( “models/weapons/v_smg_tmq.dx80.vtx” )
resource.AddFile( “models/weapons/v_smg_tmq.dx90.vtx” )
resource.AddFile( “models/weapons/v_smg_tmq.mdl” )
resource.AddFile( “models/weapons/v_smg_tmq.sw.vtx” )
resource.AddFile( “models/weapons/v_smg_tmq.vvd” )
resource.AddFile( “models/weapons/v_smg_tmq.xbox.vtx” )
resource.AddFile( “models/weapons/w_pist_usq.dx80.vtx” )
resource.AddFile( “models/weapons/w_pist_usq.dx90.vtx” )
resource.AddFile( “models/weapons/w_pist_usq.mdl” )
resource.AddFile( “models/weapons/w_pist_usq.phy” )
resource.AddFile( “models/weapons/w_pist_usq.sw.vtx” )
resource.AddFile( “models/weapons/w_pist_usq.vvd” )
resource.AddFile( “models/weapons/w_rif_famaz.dx80.vtx” )
resource.AddFile( “models/weapons/w_rif_famaz.dx90.vtx” )
resource.AddFile( “models/weapons/w_rif_famaz.mdl” )
resource.AddFile( “models/weapons/w_rif_famaz.phy” )
resource.AddFile( “models/weapons/w_rif_famaz.sw.vtx” )
resource.AddFile( “models/weapons/w_rif_famaz.vvd” )
resource.AddFile( “models/weapons/w_smg_tmq.dx80.vtx” )
resource.AddFile( “models/weapons/w_smg_tmq.dx90.vtx” )
resource.AddFile( “models/weapons/w_smg_tmq.mdl” )
resource.AddFile( “models/weapons/w_smg_tmq.phy” )
resource.AddFile( “models/weapons/w_smg_tmq.sw.vtx” )
resource.AddFile( “models/weapons/w_smg_tmq.vvd” )
resource.AddFile( “sound/weapons/tmp/tmp-1.wav” )
resource.AddFile( “sound/weapons/tmp/tmp-clipin.wav” )
resource.AddFile( “sound/weapons/tmp/tmp_clipout.wav” )
resource.AddFile( “sound/weapons/usp/usp1.wav” )
resource.AddFile( “sound/weapons/usp/usp_clipin.wav” )
resource.AddFile( “sound/weapons/usp/usp_clipout.wav” )
resource.AddFile( “sound/weapons/usp/usp_silencer_off.wav” )
resource.AddFile( “sound/weapons/usp/usp_silencer_on.wav” )
resource.AddFile( “sound/weapons/usp/usp_slideback.wav” )
resource.AddFile( “sound/weapons/usp/usp_sliderelease.wav” )
resource.AddFile( “sound/weapons/usp/usp_unsil-1.wav” )
resource.AddFile( “materials/VGUI/gfx/VGUI/famas.vtf” )
resource.AddFile( “materials/VGUI/gfx/VGUI/usp45.vtf” )
resource.AddFile( “materials/models/weapons/v_models/Beretta 92FS/frame.vmt” )
resource.AddFile( “materials/models/weapons/v_models/Beretta 92FS/frame.vtf” )
resource.AddFile( “materials/models/weapons/v_models/Beretta 92FS/frame_normal.vtf” )
resource.AddFile( “materials/models/weapons/v_models/Beretta 92FS/slide.vmt” )
resource.AddFile( “materials/models/weapons/v_models/Beretta 92FS/slide.vtf” )
resource.AddFile( “materials/models/weapons/v_models/Beretta 92FS/slide_normal.vtf” )
resource.AddFile( “materials/models/weapons/v_models/pist_deagle/deagle_skin1.vtf” )
resource.AddFile( “materials/models/weapons/v_models/RE4 TMP/dot copy.vtf” )
resource.AddFile( “materials/models/weapons/v_models/RE4 TMP/dot.vmt” )
resource.AddFile( “materials/models/weapons/v_models/RE4 TMP/dot.vtf” )
resource.AddFile( “materials/models/weapons/v_models/RE4 TMP/lens.vmt” )
resource.AddFile( “materials/models/weapons/v_models/RE4 TMP/lens.vtf” )
resource.AddFile( “materials/models/weapons/v_models/RE4 TMP/lens_trans.vtf” )
resource.AddFile( “materials/models/weapons/v_models/RE4 TMP/M900A.vmt” )
resource.AddFile( “materials/models/weapons/v_models/RE4 TMP/M900A.vtf” )
resource.AddFile( “materials/models/weapons/v_models/RE4 TMP/M900A_normal.vtf” )
resource.AddFile( “materials/models/weapons/v_models/RE4 TMP/sight.vmt” )
resource.AddFile( “materials/models/weapons/v_models/RE4 TMP/sight.vtf” )
resource.AddFile( “materials/models/weapons/v_models/RE4 TMP/sight_normal.vtf” )
resource.AddFile( “materials/models/weapons/v_models/RE4 TMP/T1.vmt” )
resource.AddFile( “materials/models/weapons/v_models/RE4 TMP/T1.vtf” )
resource.AddFile( “materials/models/weapons/v_models/RE4 TMP/T1_normal.vtf” )
resource.AddFile( “materials/models/weapons/v_models/RE4 TMP/T2.vmt” )
resource.AddFile( “materials/models/weapons/v_models/RE4 TMP/T2.vtf” )
resource.AddFile( “materials/models/weapons/v_models/RE4 TMP/T2_normal.vtf” )
resource.AddFile( “materials/models/weapons/v_models/RE4 TMP/T3.vmt” )
resource.AddFile( “materials/models/weapons/v_models/RE4 TMP/T3.vtf” )
resource.AddFile( “materials/models/weapons/v_models/RE4 TMP/T3_normal.vtf” )
resource.AddFile( “materials/models/weapons/v_models/RE4 TMP/uscmap2.vmt” )
resource.AddFile( “materials/models/weapons/v_models/RE4 TMP/uscmap2.vtf” )
resource.AddFile( “materials/models/weapons/v_models/RE4 TMP/uscmap2_normal.vtf” )
resource.AddFile( “materials/models/weapons/v_models/snipa_famas/Body norm.vtf” )
resource.AddFile( “materials/models/weapons/v_models/snipa_famas/Body.vmt” )
resource.AddFile( “materials/models/weapons/v_models/snipa_famas/Body.vtf” )
resource.AddFile( “materials/models/weapons/v_models/snipa_famas/Side norm.vtf” )
resource.AddFile( “materials/models/weapons/v_models/snipa_famas/Side.vmt” )
resource.AddFile( “materials/models/weapons/v_models/snipa_famas/Side.vtf” )
resource.AddFile( “materials/models/weapons/w_models/Beretta 92FS/frame.vmt” )
resource.AddFile( “materials/models/weapons/w_models/Beretta 92FS/pist_usp.vmt” )
resource.AddFile( “materials/models/weapons/w_models/Beretta 92FS/slide.vmt” )
resource.AddFile( “materials/models/weapons/w_models/w_snipa_famas/Body.vmt” )
resource.AddFile( “materials/models/weapons/w_models/w_snipa_famas/Side.vmt” )
end[/lua]

I have this under lua/autorun/resources.lua

Am I putting this in the right place? Or am I doing something wrong?

Help!

Take away the If SERVER and the end and place inside of lua/autorun/server and it should be good to go!

Are tou using FastDL? Make sure the files are also on the FastDL server.

Well I use SourceRSC for it to upload any extra content into FastDL to my website FastDL.

So I’m pretty much sure its on the FastDL.


@brandonj4

I’ll give this a try, I’ll let you know if it works or not.