Resource.AddFile not working!

I’m using this below in /lua/autorun/client/download.lua


wresource.AddFile("material/gui/silkicons/money_add.vmt")
resource.AddFile("materials/gui/silkicons/group.vmt")
resource.AddFile("materials/gui/silkicons/group.vtf")
resource.AddFile("material/gui/silkicons/heart.vmt")
resource.AddFile("materials/gui/silkicons/heart.vtf")
resource.AddFile("materials/gui/silkicons/money.vmt")
resource.AddFile("material/gui/silkicons/money.vtf")
resource.AddFile("materials/gui/silkicons/shield.vmt")
resource.AddFile("materials/gui/silkicons/shield.vtf")
resource.AddFile("material/gui/silkicons/user.vmt")
resource.AddFile("materials/gui/silkicons/user.vtf")
resource.AddFile("materials/gui/silkicons/user_green.vtf")

I’m trying to download HUD textures, and its not working…

You have a w in the beginning of your thingy.

And it needs to be in /lua/autorun ,r ight?

The directory should be:
[lua]lua/autorun/server/whatever.lua[/lua]

If you keep it inside the same directory, then you need to have this:
[lua]
if ( SERVER ) then
AddCSLuaFile()

 resource.AddFile( 'blah' )

end
[/lua]