Models not downloading.

Im using wamp server as web host. Im using mafia models for my job(s) But no one can download it.

i tried resource.Add but it didn’t worked
http://78.165.155.187/garrysmod/ here’s my fastdl link

My server.cfg:


sv_downloadurl 	"78.165.155.187/garrysmod"
sv_loadingurl "http://thecodingbeast.com/loadingscreen/index?id=1043&steamid=%s"
sv_allowdownload 1
sv_allowupload 1
sbox_godmode 0
net_maxfilesize 64
fps_max 150

Post your resource.AddFile code.
Also i think you need a extra slash in the end of your downloadurl.


function ForceDownloads()
    resource.AddFile("addons/Mafia Player Models")
 end

You need the full path to the model. More Info: http://wiki.garrysmod.com/page/resource/AddFile
So like for the ‘Fedora Model’ it would be:


-- Model
resource.AddFile( "models/humans/mafia/fedora.mdl" )

-- Material
resource.AddFile( "materials/models/humans/mafia/fedora.vmt" )

Also there is no reason to have it in a function.

Oh my god it worked, thanks :smiley: