Having trouble with making players download custom models/sounds.

I’ve tried everything, from the addon that is at gmod.org, to what the wiki says, non of it works, at least it hasn’t yet, for me.

Here’s the code I currently have(And doesn’t work, either)


if SERVER then
AddCSLuaFile( "forceddownloads.lua" )
//Admin Models(Models)
resource.AddFile("models\slash\LOKI\loki.mdl")
resource.AddFile("models\slash\LOKI\LOKI.phy")

//Admin Models(Materials)
resource.AddFile("materials\models\slash\LOKI\MCH_LGT_Base_Diff.vmt")
resource.AddFile("materials\models\slash\LOKI\MCH_LGT_Base_Norm.vtf")
resource.AddFile("materials\models\slash\LOKI\reflections.vtf")
resource.AddFile("materials\models\slash\LOKI\visor.vmf")
resource.AddFile("materials\models\slash\LOKI\visor_normal.vtf")

//Sounds & Music
resource.AddSingleFile("sound	bs\Portal2-01-Reconstructing_More_Science.mp3")
resource.AddSingleFile("sound	bs\Portal2-01-You_Will_Be_Perfect.mp3")
resource.AddSingleFile("sound	bs\Portal2-06-TEST.mp3")
resource.AddSingleFile("sound	bs\Portal2-07-The_Part_Where_He_Kills_You.mp3")
resource.AddSingleFile("sound	bs\Portal2-10-Your_Precious_Moon.mp3")
resource.AddSingleFile("sound	bs\Portal2-11-Caroline_Deleted.mp3")
resource.AddSingleFile("sound	bs\Portal2-11-I_AM_NOT_A_MORON.mp3")
resource.AddSingleFile("sound	bs\Portal2-13-Want_You_Gone.mp3")
end

Try this instead:


if SERVER then
AddCSLuaFile( "forceddownloads.lua" )
//Admin Models(Models)
resource.AddFile("models/slash/LOKI/loki.mdl")
resource.AddFile("models/slash/LOKI/LOKI.phy")

//Admin Models(Materials)
resource.AddFile("materials/models/slash/LOKI/MCH_LGT_Base_Diff.vmt")
resource.AddFile("materials/models/slash/LOKI/MCH_LGT_Base_Norm.vtf")
resource.AddFile("materials/models/slash/LOKI/reflections.vtf")
resource.AddFile("materials/models/slash/LOKI/visor.vmf")
resource.AddFile("materials/models/slash/LOKI/visor_normal.vtf")

//Sounds & Music
resource.AddSingleFile("sound/tbs/Portal2-01-Reconstructing_More_Science.mp3")
resource.AddSingleFile("sound/tbs/Portal2-01-You_Will_Be_Perfect.mp3")
resource.AddSingleFile("sound/tbs/Portal2-06-TEST.mp3")
resource.AddSingleFile("sound/tbs/Portal2-07-The_Part_Where_He_Kills_You.mp3")
resource.AddSingleFile("sound/tbs/Portal2-10-Your_Precious_Moon.mp3")
resource.AddSingleFile("sound/tbs/Portal2-11-Caroline_Deleted.mp3")
resource.AddSingleFile("sound/tbs/Portal2-11-I_AM_NOT_A_MORON.mp3")
resource.AddSingleFile("sound/tbs/Portal2-13-Want_You_Gone.mp3")
end

I think that’s exactly what I had before?

I can’t notice any differences.