resource.AddFile downloads particle, but particle not received.

Hello! We have implemented a forcedownloads.lua for our server. Everything downloads just fine, except the particle, which is the most important part of our server. Sounds and materials work just fine, however the particle is no where to be seen.



resource.AddFile("particles/vMTdNs.pcf")


is the code we are using. The code is the same for all files, but the particle is the only file not working.

When you join the server, it says “Downloading particles/vMTdNs.pcf”, but when you join the server, the file is not in the particles folder, and the particles do not show up. Even restarting the game doesn’t do anything, and every time we rejoin the server, and every time we change the map, it downloads vMTdNs.pcf

Any fixes?

are you sure that you’re using:

[lua]if SERVER then[/lua]

so

[lua] if SERVER then

resource.AddFile(“particles/vMTdNs.pcf”)[/lua]

Also, this is going into lua/autorun right?

Located in the garrysmod/lua/autorun/server

Everything downloads fines, except the particle:



//Materials
resource.AddFile("materials/gm_tornadohighway/lightning.vmt")
resource.AddFile("materials/gm_tornadohighway/lightning.vtf")
resource.AddFile("materials/gm_tornadohighway/mike_doppler.vmt")
resource.AddFile("materials/gm_tornadohighway/mike_doppler.vtf")
resource.AddFile("materials/gm_tornadohighway/mike_dustyrails.vmt")
resource.AddFile("materials/gm_tornadohighway/mike_dustytrails.vtf")
resource.AddFile("materials/gm_tornadohighway/mike_gassign.vmt")
resource.AddFile("materials/gm_tornadohighway/mike_gassign.vtf")
resource.AddFile("materials/gm_tornadohighway/mike_manual.vmt")
resource.AddFile("materials/gm_tornadohighway/mike_manual.vtf")
resource.AddFile("materials/gm_tornadohighway/mike_warn.vmt")
resource.AddFile("materials/gm_tornadohighway/mike_warn.vtf")
resource.AddFile("materials/gm_tornadohighway/mountains01.vmt")
resource.AddFile("materials/gm_tornadohighway/mountains01.vtf")
resource.AddFile("materials/gm_tornadohighway/radar01.vmt")
resource.AddFile("materials/gm_tornadohighway/radar01.vtf")
resource.AddFile("materials/gm_tornadohighway/radar02.vmt")
resource.AddFile("materials/gm_tornadohighway/radar02.vtf")
resource.AddFile("materials/gm_tornadohighway/radar03.vmt")
resource.AddFile("materials/gm_tornadohighway/radar03.vtf")
resource.AddFile("materials/gm_tornadohighway/smoke1.vmt")
resource.AddFile("materials/gm_tornadohighway/smoke1.vtf")
 
//Particles
resource.AddFile("particles/vMTdNs.pcf")
 
//Sound
resource.AddFile("sound/gm_tornadohighway/siren3.wav")
resource.AddFile("sound/gm_tornadohighway/tornado.wav")
resource.AddFile("sound/gm_tornadohighway/Wind_Light02_loop.wav")

Anyone?

use resource.AddSingleFile