Forced Download [Help]

Hello, i need some help with forced download as it is not working for me.
I was force downloading a model with some materials.



resource.AddSingleFile( "models/player/Billy_Jigsaw.dx80.vtx" )
resource.AddSingleFile( "models/player/Billy_Jigsaw.dx90.vtx" )
resource.AddSingleFile( "models/player/billy_jigsaw.mdl" )
resource.AddSingleFile( "models/player/billy_Jigsaw.phy" )
resource.AddSingleFile( "models/player/Billy_Jigsaw.sw.vtx" )
resource.AddSingleFile( "models/player/Billy_Jigsaw.sw.vtx" )
resource.AddSingleFile( "models/player/Billy_Jigsaw.xbox.vtx" )
resource.AddSingleFile( "materials/models/player/jigsaw_shoes_red.vtf" )
resource.AddSingleFile( "materials/models/player/jigsaw_shoes_normal.vtf" )
resource.AddSingleFile( "materials/models/player/jigsaw_shoes_grey.vtf" )
resource.AddSingleFile( "materials/models/player/jigsaw_shoes.vmt" )
resource.AddSingleFile( "materials/models/player/jigsaw_normal.vtf" )
resource.AddSingleFile( "materials/models/player/jigsaw_holster_normal.vtf" )
resource.AddSingleFile( "materials/models/player/jigsaw_holster.vmt" )
resource.AddSingleFile( "materials/models/player/jigsaw/jigsaw_hair_normal.vtf" )
resource.AddSingleFile( "materials/models/player/jigsaw/jigsaw_hair.vtf" )
resource.AddSingleFile( "materials/models/player/jigsaw/jigsaw_hair.vmt" )
resource.AddSingleFile( "materials/models/player/jigsaw/jigsaw_eyes.vtf" )
resource.AddSingleFile( "materials/models/player/jigsaw/jigsaw_eyes.vmt" )
resource.AddSingleFile( "materials/models/player/jigsaw/jigsaw.vtf" )
resource.AddSingleFile( "materials/models/player/jigsawjigsaw.vmt" )


I checked that all files is in the folders as in the code also the same with fastdownload.
When i changed model for a gamemode it showed up as error, but some files downloads but never show up in my/local folder

Have you tried to use resource.AddFile() instead? Resource.AddFile automatically adds related files if I remember correctly, resource.AddSingleFile() does not. Correct me if i’m wrong.

With that, I mean that if you were to use resource.AddFile(“homo/something/banana/model.mdl”) it’d add all related files automatically, for instance it’d add model.phy, etc etc.

Same goes with textures, as if you were to add resource.AddFile(“blablabla/blablabla/material.vtf”) it’d also include materials.extension_here

Try that instead and see if it solves the issue.

I will try :slight_smile: Thanks