Please Help

Hi im new to Facepunch and i have a DarkRP server with FastDL

FastDL works for my Zs but DarkRP olso works but people only see on my custom player models black and purple :frowning: what can i do?
i do have Resources.lua etc and tried puting Materials stuff in root of materials folder and same to directory from Resources.lua inside lua/autorun/server
this is my resources.lua file:
resource.AddFile( “maps/rp_downtown_v4c.bsp” )
resource.AddFile( “models/fbi_01.dx80.vtx.” )
resource.AddFile( “models/fbi_01.dx90.vtx” )
resource.AddFile( “models/fbi_01.mdl” )
resource.AddFile( “models/fbi_01.phy” )
resource.AddFile( “models/fbi_01.sw.vtx” )
resource.AddFile( “models/fbi_01.vvd” )
resource.AddFile( “models/saddam.dx80.vtx” )
resource.AddFile( “models/saddam.dx90.vtx” )
resource.AddFile( “models/saddam.mdl” )
resource.AddFile( “models/saddam.phy” )
resource.AddFile( “models/saddam.sw.vtx” )
resource.AddFile( “models/saddam.vvd” )
resource.AddFile( “models/jack_sparrow.dx80.vtx” )
resource.AddFile( “models/jack_sparrow.dx90.vtx” )
resource.AddFile( “models/jack_sparrow.mdl” )
resource.AddFile( “models/jack_sparrow.phy” )
resource.AddFile( “models/jack_sparrow.sw.vtx” )
resource.AddFile( “models/jack_sparrow.vvd” )
resource.AddFile( “materials/saddam_body.vmt” )
resource.AddFile( “materials/saddam_body.vtf” )
resource.AddFile( “materials/saddam_face.vmt” )
resource.AddFile( “materials/saddam_face.vtf” )
resource.AddFile( “materials/saddam_hair.vmt” )
resource.AddFile( “materials/saddam_hair.vtf” )
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.."/*", true)) do
	resource.AddFile(dir.."/"..v)
end

end

AddDir(“materials/”)

and this is my ZS Resources.lua:
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.."/*", true)) do
	resource.AddFile(dir.."/"..v)
end

end

AddDir(“models/weapons”)
AddDir(“models/”)
AddDir(“materials/”)
AddDir(“maps/”)

[lua]
AddDir(“models/weapons”)
AddDir(“models/”)
AddDir(“materials/”)
AddDir(“maps/”)
[/lua]

The ‘/’ symbol at the end of the arguments might be a problem, because from what I see the AddDir function adds it automatically.

Also:

  1. It’s NOT a good idea to make your clients download the entire models and materials folders.
  2. You don’t need to run resource.AddFile on maps.

i did like you said but still isnt downloading M4A1 and the Bianchia gun to my ZS Server :confused: and still pink and black on the darkrp :confused:

Do you have the files on both the game server and FastDL server?