Force download a model

So i put a model (http://www.garrysmod.org/downloads/?a=view&id=77738 ) on my server then did

function AddDir(dir) // recursively adds everything in a directory to be downloaded by client
local list = file.FindDir("…/"…dir…"/*")
for _, fdir in pairs(list) do
if fdir != “.svn” then // don’t spam people with useless .svn folders
AddDir(dir…"/"…fdir)
end
end

for k,v in pairs(file.Find("../"..dir.."/*")) do
	resource.AddFile(dir.."/"..v)
end

end

AddDir(“materials/models/player/slow/nanosuit”)

function AddDir(dir) // recursively adds everything in a directory to be downloaded by client
local list = file.FindDir("…/"…dir…"/*")
for _, fdir in pairs(list) do
if fdir != “.svn” then // don’t spam people with useless .svn folders
AddDir(dir…"/"…fdir)
end
end

for k,v in pairs(file.Find("../"..dir.."/*")) do
	resource.AddFile(dir.."/"..v)
end

end

AddDir(“models/player/slow/nanosuit”)

In lua/autorun/server so players will download it, but all the players that join have a checkerboard on him (the black and purple texture)

How can i fix it?

Because you’ve only made them download the model, not the materials for him.
The materials will be found in the materials/models/slow/nanosuit folder.

function AddDir(dir) // recursively adds everything in a directory to be downloaded by client
local list = file.FindDir("../"..dir.."/*")
for _, fdir in pairs(list) do
if fdir != ".svn" then // don't spam people with useless .svn folders
AddDir(dir.."/"..fdir)
end
end

for k,v in pairs(file.Find("../"..dir.."/*")) do
resource.AddFile(dir.."/"..v)
end
end

AddDir("materials/models/player/slow/nanosuit")

Is the 1st download and materials/models/slow/nanosuit doesn’t exist

Use: AddDir(“materials/models/player/slow/nanosuit/”)

Well I dont have the model, so I wouldnt know.