Help with Clients autodownloading lua on server entry

I’ve been having problems with making people who join my server auto download certain .lua files. I can make people download .mdl’s and .vtf’s and such fine, it’s just when it comes to lua no matter what I try it ends up as “Other” on the download screen showing that it should be downloaded but never does.

Anyone know a quick way to force the downloading of lua files?

For information, Right now for my .mdl’s and .vtf’s I just have a lua called Resource with this command…


resource.AddFile("Directioryandfilenamehere")

I tried using this to make joining players auto download it, however it still didn’t work.

Any ideas?

It should work, it works for me. Are you putting it in lua/autorun/server?