Custom Player Models refuse to download

On my custom darkrp the playermodels refuse to download.

-I have a sourcemod plugin that adds things to the fastdl.

-For a backup I have a resource.lua with the accurate file paths.

-In the Shared.lua for darkrp the path is right too.

-the lua/autorun is a .lua file which adds the playermodels.

-I download the files when I join the server.

EDIT:

Some downloaded but they are invisible.

I wouldn’t trust a plugin to add things for you. For the backup, I’d check your file paths again. Also check that the playermodels are installed both on your server and your FastDL.

Check your Multiplayer settings and make sure you’re allowing all custom files to be downloaded from your server.

well here is the resource.lua

[lua]resource.AddFile(“models/player/humans/suits1/male_01.mdl”)
resource.AddFile(“models/player/humans/suits1/male_02.mdl”)
resource.AddFile(“models/player/humans/suits1/male_03.mdl”)
resource.AddFile(“models/player/humans/suits1/male_04.mdl”)
resource.AddFile(“models/player/humans/suits1/male_05.mdl”)
resource.AddFile(“models/player/humans/suits1/male_06.mdl”)
resource.AddFile(“models/player/humans/suits1/male_07.mdl”)
resource.AddFile(“models/player/humans/suits1/male_08.mdl”)

resource.AddFile(“materials/models/humans/suits/vance_facemap.vtf”)
resource.AddFile(“materials/models/humans/suits/vance_facemap.vmt”)
resource.AddFile(“materials/models/humans/suits/van_facemap.vtf”)
resource.AddFile(“materials/models/humans/suits/van_facemap.vmt”)
resource.AddFile(“materials/models/humans/suits/tiesandties.vtf”)
resource.AddFile(“materials/models/humans/suits/tiesandties.vmt”)
resource.AddFile(“materials/models/humans/suits/ted_facemap.vtf”)
resource.AddFile(“materials/models/humans/suits/ted_facemap.vmt”)
resource.AddFile(“materials/models/humans/suits/suit_sheet_nml.vtf”)
resource.AddFile(“materials/models/humans/suits/suit_sheet6.vtf”)
resource.AddFile(“materials/models/humans/suits/suit_sheet6.vmt”)
resource.AddFile(“materials/models/humans/suits/suit_sheet5.vtf”)
resource.AddFile(“materials/models/humans/suits/suit_sheet5.vmt”)
resource.AddFile(“materials/models/humans/suits/suit_sheet4.vtf”)
resource.AddFile(“materials/models/humans/suits/suit_sheet4.vmt”)
resource.AddFile(“materials/models/humans/suits/suit_sheet3.vtf”)
resource.AddFile(“materials/models/humans/suits/suit_sheet3.vmt”)
resource.AddFile(“materials/models/humans/suits/suit_sheet2.vtf”)
resource.AddFile(“materials/models/humans/suits/suit_sheet2.vmt”)
resource.AddFile(“materials/models/humans/suits/suit_sheet.vtf”)
resource.AddFile(“materials/models/humans/suits/suit_sheet.vmt”)
resource.AddFile(“materials/models/humans/suits/sandro_facemap.vtf”)
resource.AddFile(“materials/models/humans/suits/sandro_facemap.vmt”)
resource.AddFile(“materials/models/humans/suits/normalmap_flat.vtf”)
resource.AddFile(“materials/models/humans/suits/mike_facemap.vtf”)
resource.AddFile(“materials/models/humans/suits/mike_facemap.vmt”)
resource.AddFile(“materials/models/humans/suits/joe_facemap.vtf”)
resource.AddFile(“materials/models/humans/suits/joe_facemap.vmt”)
resource.AddFile(“materials/models/humans/suits/eric_facemap.vtf”)
resource.AddFile(“materials/models/humans/suits/eric_facemap.vmt”)
resource.AddFile(“materials/models/humans/suits/erdim_cylmap.vtf”)
resource.AddFile(“materials/models/humans/suits/erdim_cylmap.vmt”)
resource.AddFile(“materials/models/humans/suits/art_facemap.vtf”)
resource.AddFile(“materials/models/humans/suits/art_facemap.vmt”)
resource.AddFile(“materials/models/humans/suits/arms_normal.vtf”)
resource.AddFile(“materials/models/humans/suits/arms_blackfix.vtf”)
resource.AddFile(“materials/models/humans/suits/arms_blackfix.vmt”)
resource.AddFile(“materials/models/humans/suits/arms.vtf”)
resource.AddFile(“materials/models/humans/suits/arms.vmt”)

resource.AddFile(“models/player/humans/suits1/male_09.vvd”)
resource.AddFile(“models/player/humans/suits1/male_09.sw.vtx”)
resource.AddFile(“models/player/humans/suits1/male_09.phy”)
resource.AddFile(“models/player/humans/suits1/male_09.mdl”)
resource.AddFile(“models/player/humans/suits1/male_09.dx90.vtx”)
resource.AddFile(“models/player/humans/suits1/male_09.dx80.vtx”)
resource.AddFile(“models/player/humans/suits1/male_08.vvd”)
resource.AddFile(“models/player/humans/suits1/male_08.sw.vtx”)
resource.AddFile(“models/player/humans/suits1/male_08.phy”)
resource.AddFile(“models/player/humans/suits1/male_08.mdl”)
resource.AddFile(“models/player/humans/suits1/male_08.dx90.vtx”)
resource.AddFile(“models/player/humans/suits1/male_08.dx80.vtx”)
resource.AddFile(“models/player/humans/suits1/male_07.vvd”)
resource.AddFile(“models/player/humans/suits1/male_07.sw.vtx”)
resource.AddFile(“models/player/humans/suits1/male_07.phy”)
resource.AddFile(“models/player/humans/suits1/male_07.mdl”)
resource.AddFile(“models/player/humans/suits1/male_07.dx90.vtx”)
resource.AddFile(“models/player/humans/suits1/male_07.dx80.vtx”)
resource.AddFile(“models/player/humans/suits1/male_06.vvd”)
resource.AddFile(“models/player/humans/suits1/male_06.sw.vtx”)
resource.AddFile(“models/player/humans/suits1/male_06.phy”)
resource.AddFile(“models/player/humans/suits1/male_06.mdl”)
resource.AddFile(“models/player/humans/suits1/male_06.dx90.vtx”)
resource.AddFile(“models/player/humans/suits1/male_06.dx80.vtx”)
resource.AddFile(“models/player/humans/suits1/male_05.vvd”)
resource.AddFile(“models/player/humans/suits1/male_05.sw.vtx”)
resource.AddFile(“models/player/humans/suits1/male_05.phy”)
resource.AddFile(“models/player/humans/suits1/male_05.mdl”)
resource.AddFile(“models/player/humans/suits1/male_05.dx90.vtx”)
resource.AddFile(“models/player/humans/suits1/male_05.dx80.vtx”)
resource.AddFile(“models/player/humans/suits1/male_04.vvd”)
resource.AddFile(“models/player/humans/suits1/male_04.sw.vtx”)
resource.AddFile(“models/player/humans/suits1/male_04.phy”)
resource.AddFile(“models/player/humans/suits1/male_04.mdl”)
resource.AddFile(“models/player/humans/suits1/male_04.dx90.vtx”)
resource.AddFile(“models/player/humans/suits1/male_04.dx80.vtx”)
resource.AddFile(“models/player/humans/suits1/male_03.vvd”)
resource.AddFile(“models/player/humans/suits1/male_03.sw.vtx”)
resource.AddFile(“models/player/humans/suits1/male_03.phy”)
resource.AddFile(“models/player/humans/suits1/male_03.mdl”)
resource.AddFile(“models/player/humans/suits1/male_03.dx90.vtx”)
resource.AddFile(“models/player/humans/suits1/male_03.dx80.vtx”)
resource.AddFile(“models/player/humans/suits1/male_02.vvd”)
resource.AddFile(“models/player/humans/suits1/male_02.sw.vtx”)
resource.AddFile(“models/player/humans/suits1/male_02.phy”)
resource.AddFile(“models/player/humans/suits1/male_02.mdl”)
resource.AddFile(“models/player/humans/suits1/male_02.dx90.vtx”)
resource.AddFile(“models/player/humans/suits1/male_02.dx80.vtx”)
resource.AddFile(“models/player/humans/suits1/male_01.vvd”)
resource.AddFile(“models/player/humans/suits1/male_01.sw.vtx”)
resource.AddFile(“models/player/humans/suits1/male_01.phy”)
resource.AddFile(“models/player/humans/suits1/male_01.mdl”)
resource.AddFile(“models/player/humans/suits1/male_01.dx90.vtx”)
resource.AddFile(“models/player/humans/suits1/male_01.dx80.vtx”)

resource.AddFile(“materials/vgui/entities/npc_combine_NeoF.vmt”)
resource.AddFile(“materials/vgui/entities/npc_combine_NeoF.vtf”)
resource.AddFile(“materials/vgui/entities/npc_combine_NeoH.vmt”)
resource.AddFile(“materials/vgui/entities/npc_combine_NeoH.vtf”)

resource.AddFile(“models/player/Neo_Heavy.sw.vtx”)
resource.AddFile(“models/player/Neo_Heavy.dx80.vtx”)
resource.AddFile(“models/player/Neo_Heavy.dx90.vtx”)
resource.AddFile(“models/player/neo_heavy.vvd”)
resource.AddFile(“models/player/Neo_Heavy.xbox.vtx”)
resource.AddFile(“models/player/Neo_Heavy.phy”)

resource.AddFile(“models/player/neo_heavy.mdl”)

resource.AddFile(“materials/models/characters/neoheavy/mhm_legs_0.vmt”)
resource.AddFile(“materials/models/characters/neoheavy/mhm_legs_0.vtf”)
resource.AddFile(“materials/models/characters/neoheavy/mhm_legs_0_normal.vtf”)
resource.AddFile(“materials/models/characters/neoheavy/mhm_torso_0.vtf”)
resource.AddFile(“materials/models/characters/neoheavy/mhm_torso_0.vmt”)
resource.AddFile(“materials/models/characters/neoheavy/mhm_torso_0_normal.vtf”)[/lua]

The suits ones work fine! But they are an addon…

What directory is your resource.lua in on your FastDL?

Th resource.lua isnt on the fastdl…

But it is on lua/autorun/server on my client

You’re going to want it on the FastDL of the server as well. Make a lua/autorun/server directory in your FastDL and upload the resource.lua.

Will that also fix the invisible model problem?

To fix your invisible models, I’d delete whatever files of the model that are in your steamapps/garrysmod/garrysmod directory, then rejoin and see if it fixes. If it doesn’t you may be forgetting a couple files in your resource.lua.

Why would you want that? (EVER?)
Do never put ANY lua scripts on your FastDL Webspace/Server… it’s useless and other people have full access to it.

Other people with ftp access, sure. Not like uploading a resource.lua would hurt anything.

You are talking about FastDL. Talking about FastDL means, you talk about an webserver storing all the files. You tell the server: "Hey server! Look, you don’t need to make em download those files! We have those files on a webspace at http://fastdl.whatever.me/!" - The server provides the client with a list of files which must be downloaded and then tells the client: “Here, get those files from http://fastdl.whatever.me/

Everyone can access fastdl.whatever.me, there for everyone got access to it. They might not find the files easily (as show dir is not on everywhere) - but some hosts have it enabled.

So, no, you don’t need FTP access. Everyone got access.
And a resource.lua might not hurt, but you are talking to people with very little Garry’s Mod/LUA knowledge. They might copy “database_connection.lua” and “set_super_secret_password.lua” to the FastDL Webspace because they think it’s needed. And in 1 Week they come here and say: “OMG I HAVE BEEN HACKED”.

It’s about teaching people correct things. And putting any lua on a FastDL webspace isn’t correct.

I see. Thank you for clearing that up.

Okay so let’s go through a path in my addons folder.

This one gives me a high resolution Gordon Freeman model. Here is the path to the gordon.lua (resource file)

garrysmod/addons/Gordon player model/lua/autorun/gordon.lua

Here are the contents of said lua file.

[lua]if (SERVER) then
player_manager.AddValidModel( “Gordon Freeman”, “models/player/Gordon.mdl” )
AddCSLuaFile( “gordon.lua” )
resource.AddFile(“models/player/Gordon.mdl”)
resource.AddFile(“materials/models/gordon/eyeball_l.vmt”)
resource.AddFile(“materials/models/gordon/eyeball_l.vtf”)
resource.AddFile(“materials/models/gordon/eyeball_r.vmt”)
resource.AddFile(“materials/models/gordon/eyeball_r.vtf”)
resource.AddFile(“materials/models/gordon/Glass.vmt”)
resource.AddFile(“materials/models/gordon/Glass.vtf”)
resource.AddFile(“materials/models/gordon/Glasses_Frames.vmt”)
resource.AddFile(“materials/models/gordon/Glasses_Frames.vtf”)
resource.AddFile(“materials/models/gordon/gordon_facemap.vmt”)
resource.AddFile(“materials/models/gordon/gordon_facemap.vtf”)
resource.AddFile(“materials/models/gordon/gordon_facemap_n.vmt”)
resource.AddFile(“materials/models/gordon/grn_pupil_l.vmt”)
resource.AddFile(“materials/models/gordon/grn_pupil_r.vmt”)
resource.AddFile(“materials/models/gordon/grn_pupil_l.vtf”)
resource.AddFile(“materials/models/gordon/grn_pupil_r.vtf”)
resource.AddFile(“materials/models/gordon/hevsuit_normal.vtf”)
resource.AddFile(“materials/models/gordon/hevsuit_sheet.vtf”)
resource.AddFile(“materials/models/gordon/hevsuit_sheet.vmt”)
resource.AddFile(“materials/models/gordon/mouth.vtf”)
resource.AddFile(“materials/models/gordon/mouth.vmt”)
resource.AddFile(“materials/models/HEVsuit/hevsuit_sheet.vmt”)
resource.AddFile(“materials/models/HEVsuit/hevsuit_sheet.vtf”)
resource.AddFile(“models/player/Gordon.dx80.vtx”)
resource.AddFile(“models/player/Gordon.dx90.vtx”)
resource.AddFile(“models/player/Gordon.sw.vtx”)
resource.AddFile(“models/player/Gordon.vvd”)
end

list.Set( “PlayerOptionsModel”, “Gordon Freeman”, “models/player/Gordon.mdl” )[/lua]

Bump, I also put [lua]include( “resourcefastdl.lua” )[/lua] in the init.lua found in Lua

Don’t do such useless includes please.
As autorun says, it’s executed automatically, there is no need for an include.
By the way: For Serverside-Only LUA’s you can use /autorun/server/
Also, AFAIK it’s only required to add the .mdl file for models.

Just to ensure: Are you using FastDL?
Did you put all the files into the MAIN folder of Garry’s Mod? (NOT /addons/bla/content/models/…)

I put them in addons but the fastdl the server uses moves them into the main folder for me.

EDIT: Also just the .mdl?

Bump, here is the current file:
[lua]
–// File Generated By Fox-Warrior’s Resources Generator Version 2.04 \–

if (SERVER) then
resource.AddSingleFile( “models/player/Gordon.dx80.vtx” )
resource.AddSingleFile( “models/player/Gordon.dx90.vtx” )
resource.AddSingleFile( “models/player/gordon.mdl” )
resource.AddSingleFile( “models/player/Gordon.phy” )
resource.AddSingleFile( “models/player/Gordon.sw.vtx” )
resource.AddSingleFile( “models/player/gordon.vvd” )
resource.AddSingleFile( “materials/models/HEVSuit/hevsuit_sheet.vmt” )
resource.AddSingleFile( “materials/models/HEVSuit/hevsuit_sheet_normal.vtf” )
resource.AddSingleFile( “materials/models/gordon/eyeball_l.vmt” )
resource.AddSingleFile( “materials/models/gordon/eyeball_l.vtf” )
resource.AddSingleFile( “materials/models/gordon/eyeball_r.vmt” )
resource.AddSingleFile( “materials/models/gordon/eyeball_r.vtf” )
resource.AddSingleFile( “materials/models/gordon/Glass.vmt” )
resource.AddSingleFile( “materials/models/gordon/glass.vtf” )
resource.AddSingleFile( “materials/models/gordon/Glasses_Frames.vmt” )
resource.AddSingleFile( “materials/models/gordon/Glasses_Frames.vtf” )
resource.AddSingleFile( “materials/models/gordon/gordon_facemap.vmt” )
resource.AddSingleFile( “materials/models/gordon/gordon_facemap.vtf” )
resource.AddSingleFile( “materials/models/gordon/gordon_facemap_n.vtf” )
resource.AddSingleFile( “materials/models/gordon/grn_pupil_l.vmt” )
resource.AddSingleFile( “materials/models/gordon/grn_pupil_l.vtf” )
resource.AddSingleFile( “materials/models/gordon/grn_pupil_r.vmt” )
resource.AddSingleFile( “materials/models/gordon/grn_pupil_r.vtf” )
resource.AddSingleFile( “materials/models/gordon/hevsuit_normal.vtf” )
resource.AddSingleFile( “materials/models/gordon/hevsuit_sheet.vmt” )
resource.AddSingleFile( “materials/models/gordon/hevsuit_sheet.vtf” )
resource.AddSingleFile( “materials/models/gordon/mouth.vmt” )
resource.AddSingleFile( “materials/models/gordon/mouth.vtf” )
end[/lua]

Sorry for the bump, Its not too old so…

I also need help with this issue.