resource add file not working

So I made a lua file in lua/autorun/server and put in


if (SERVER) then
	resource.AddFile( "potato.dx80.vtx" )
	resource.AddFile( "potato.dx90.vtx" )
	resource.AddFile( "potato.mdl" )
	resource.AddFile( "potato.phy" )
	resource.AddFile( "potato.sw.vtx" )
	resource.AddFile( "potato.vvd" )
	resource.AddFile( "potato.xbox.vtx" )
	resource.AddFile( "daft_gold.dx80.vtx" )
	resource.AddFile( "daft_gold.dx90.vtx" )
	resource.AddFile( "daft_gold.mdl" )
	resource.AddFile( "daft_gold.phy" )
	resource.AddFile( "daft_gold.sw.vtx" )
	resource.AddFile( "daft_gold.vvd" )
	resource.AddFile( "daft_gold.xbox.vtx" )
	resource.AddFile( "daft_silver.dx80.vtx" )
	resource.AddFile( "daft_silver.dx90.vtx" )
	resource.AddFile( "daft_silver.mdl" )
	resource.AddFile( "daft_silver.phy" )
	resource.AddFile( "daft_silver.sw.vtx" )
	resource.AddFile( "daft_silver.vvd" )
	resource.AddFile( "daft_silver.xbox.vtx" )
end


but everytime I join it doesn’t download

if they are models use models/modelpath
if they are sounds use sound/soundpath
etc…
also this belongs in developer discussion

oh So like this would work and then


if (SERVER) then
	resource.AddFile( "models/nemo/potato.dx80.vtx" )
	resource.AddFile( "models/nemo/potato.dx90.vtx" )
	resource.AddFile( "models/nemo/potato.mdl" )
	resource.AddFile( "models/nemo/potato.phy" )
	resource.AddFile( "models/nemo/potato.sw.vtx" )
	resource.AddFile( "models/nemo/potato.vvd" )
	resource.AddFile( "models/nemo/potato.xbox.vtx" )
	resource.AddFile( "models/player/daftpunk/daft_gold.dx80.vtx" )
	resource.AddFile( "models/player/daftpunk/daft_gold.dx90.vtx" )
	resource.AddFile( "models/player/daftpunk/daft_gold.mdl" )
	resource.AddFile( "models/player/daftpunk/daft_gold.phy" )
	resource.AddFile( "models/player/daftpunk/daft_gold.sw.vtx" )
	resource.AddFile( "models/player/daftpunk/daft_gold.vvd" )
	resource.AddFile( "models/player/daftpunk/daft_gold.xbox.vtx" )
	resource.AddFile( "models/player/daftpunk/daft_silver.dx80.vtx" )
	resource.AddFile( "models/player/daftpunk/daft_silver.dx90.vtx" )
	resource.AddFile( "models/player/daftpunk/daft_silver.mdl" )
	resource.AddFile( "models/player/daftpunk/daft_silver.phy" )
	resource.AddFile( "models/player/daftpunk/daft_silver.sw.vtx" )
	resource.AddFile( "models/player/daftpunk/daft_silver.vvd" )
	resource.AddFile( "models/player/daftpunk/daft_silver.xbox.vtx" )
end

yes

Delete if (SERVER) then and end; it’s pointless since you already put it in lua/autorun/server