• Models not downloading.
    4 replies, posted
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 [url]http://78.165.155.187/garrysmod/[/url] here's my fastdl link My server.cfg: [CODE]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[/CODE]
Post your resource.AddFile code. Also i think you need a extra slash in the end of your downloadurl.
[CODE]function ForceDownloads() resource.AddFile("addons/Mafia Player Models") end[/CODE]
You need the full path to the model. More Info: [URL]http://wiki.garrysmod.com/page/resource/AddFile[/URL] So like for the 'Fedora Model' it would be: [CODE]-- Model resource.AddFile( "models/humans/mafia/fedora.mdl" ) -- Material resource.AddFile( "materials/models/humans/mafia/fedora.vmt" )[/CODE] Also there is no reason to have it in a function.
Oh my god it worked, thanks :D
Sorry, you need to Log In to post a reply to this thread.