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 here’s my fastdl link

My server.cfg:

sv_downloadurl 	""
sv_loadingurl ""
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")

You need the full path to the model. More Info:
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: