Force Download models don't work !

Hello Everyone,

For my DarkRp, I would like add some skins but it doesn’t works.
I’ve Put all models/etsilence/fussy07.mdl,… in garrysmod/models/…

I tried twice thing.

First, I created a file named model.lua with this:

resource.AddFile(“models/etsilence/fussy07.dx80.vtx”)
resource.AddFile(“models/etsilence/fussy07.dx90.vtx”)
resource.AddFile(“models/etsilence/fussy07.mdl”)
resource.AddFile(“models/etsilence/fussy07.phy”)
resource.AddFile(“models/etsilence/fussy07.sw.vtx”)
resource.AddFile(“models/etsilence/fussy07.vvd”)

and I put this like this : garrysmod/lua/autorun/client/model.lua

Secondly,

I use ULX so I tried to put in garrysmod/ULX/data/ulx/downloads.txt this :

models/etsilence

The First one and second one don’t work, ERROR skin still !

I hope someone can help me,

Thanks,

ProGcss.

Anyone would help me please ?

Cmon I really need your Help !!!

Thanks in Advance.

Don’t put it in client. Try the server folder or just autorun, and in future don’t bother with the rescourse.AddFile. It’s time wasting when you can just make an lua file in autorun with the following.


local ClientResources = 0;
local function ProcessFolder ( Location )
for k, v in pairs(file.Find(Location .. '*')) do
if file.IsDir(Location .. v) then
ProcessFolder(Location .. v .. '/')
else
local OurLocation = string.gsub(Location .. v, '../models/', '')

if !string.find(Location, '.db') then
ClientResources = ClientResources + 1;
resource.AddFile(OurLocation);
end
end
end
end

 if !SinglePlayer() then
ProcessFolder('../models/etsilence/');
end

I modified the original code so it should work out of the box, however if it is an addon tell me and i’ll modify it.

First Thanks for your answer.

But I’ve put all of your following in autorun, then in server, but it doesn’t works again.

No one ?

YOU STOLE MY AVATAR! :bang: I made it by myself.

Credit to SlayerFin for the Avatar.
And about my Problem ? I Really need help because I can’t upload anything on my server if they will not be downloaded.

When you join does it look like they’re downloading?

Nope, nothing Happened