I can see custom playermodels, my users cannot.

Hello,
I am currently running a dedicated TTT server. I have installed pointshop and have decided to install some custom playermodels. I found a Dovahkiin playermodel on the steam workshop, so I ran GMAD extractor on it to get the folder. I placed the folder in garrysmod/addons and have put the following code inside “dovahkiin.lua”:


-- /*
--	Addon by Voikanaa	
-- */

if (SERVER) then 
player_manager.AddValidModel( "Doavhkiin", "models/player/dovahkiin.mdl" )
AddCSLuaFile( "dovahkiin.lua" )
end

player_manager.AddValidModel( "Dovahkiin", 		"models/player/dovahkiin.mdl" );
player_manager.AddValidHands( "Dovahkiin", "models/player/dovahkiin_hands.mdl", 0, "00000000" )
list.Set( "PlayerOptionsModel", "Dovahkiin", 	"models/player/dovahkiin.mdl" );

--// File Generated By Fox-Warrior's Resources Generator Version 2.05 \\--

if (SERVER) then
	resource.AddFile( "models/player/dovahkiin.mdl" )
	resource.AddFile( "models/player/dovahkiin_hands.mdl" )
	resource.AddFile( "models/player/dovahkiin.dx80.vtx" )
	resource.AddFile( "models/player/dovahkiin.dx90.vtx" )
	resource.AddFile( "models/player/dovahkiin.phy" )
	resource.AddFile( "models/player/dovahkiin.sw.vtx")
	resource.AddFile( "models/player/dovahkiin.vvd" )
	resource.AddFile( "models/player/dovahkiin_hands.dx80vtx." )
	resource.AddFile( "models/player/dovahkiin_hands.dx90vtx." )
	resource.AddFile( "models/player/dovahkiin_hands.mdl" )
	resource.AddFile( "models/player/dovahkiin_hands.sw.vtx" )
	resource.AddFile( "models/player/dovahkiin_hands.vvd" )
	resource.AddFile( "materials/models/player/dovahkiin/bootsplate.vmt" )
	resource.AddFile( "materials/models/player/dovahkiin/bootsplate.vtf" )
	resource.AddFile( "materials/models/player/dovahkiin/bootsplate_n.vtf" )
	resource.AddFile( "materials/models/player/dovahkiin/cuirasslight.vmt" )
	resource.AddFile( "materials/models/player/dovahkiin/cuirasslight.vtf" )
	resource.AddFile( "materials/models/player/dovahkiin/cuirasslight_n.vtf" )
	resource.AddFile( "materials/models/player/dovahkiin/eyelightgrey.vmt" )
	resource.AddFile( "materials/models/player/dovahkiin/eyelightgrey.vtf" )
	resource.AddFile( "materials/models/player/dovahkiin/gauntletsplate.vmt" )
	resource.AddFile( "materials/models/player/dovahkiin/gauntletsplate.vtf" )
	resource.AddFile( "materials/models/player/dovahkiin/gauntletsplate_n.vtf" )
	resource.AddFile( "materials/models/player/dovahkiin/hairlong.vmt" )
	resource.AddFile( "materials/models/player/dovahkiin/hairlong.vtf" )
	resource.AddFile( "materials/models/player/dovahkiin/hairlong_n.vtf" )
	resource.AddFile( "materials/models/player/dovahkiin/helmetplate01.vmt" )
	resource.AddFile( "materials/models/player/dovahkiin/helmetplate01.vtf" )
	resource.AddFile( "materials/models/player/dovahkiin/helmetplate01_n.vtf" )
	resource.AddFile( "materials/models/player/dovahkiin/malebody.vmt" )
	resource.AddFile( "materials/models/player/dovahkiin/malebody.vtf" )
	resource.AddFile( "materials/models/player/dovahkiin/malehead.vmt" )
	resource.AddFile( "materials/models/player/dovahkiin/malehead.vtf" )
end

I then went to the pointshop folder containing the lua file for dovahkiiin in pointshop and inside the dovahkiin.lua it says:


ITEM.Name = 'Dovahkiin'
ITEM.Price = 10000
ITEM.Model = 'models/player/dovahkiin.mdl'
ITEM.AllowedUserGroups = { "admin", "vip", "superadmin", "operator", "head-admin" }

function ITEM:OnEquip(ply, modifications)
	if not ply._OldModel then
		ply._OldModel = ply:GetModel()
	end
	
	timer.Simple(1, function() ply:SetModel(self.Model) end)
end

function ITEM:OnHolster(ply)
	if ply._OldModel then
		ply:SetModel(ply._OldModel)
	end
end

function ITEM:PlayerSetModel(ply)
	ply:SetModel(self.Model)
end

I then went to my server panel (from Vilayer) and also ran a FastDL sync thing. I also put the Dovahkiin playermodel on the workshop onto my steam server collection. I know my collection is working because all my other addons in the collection are showing up perfectly.
When I then go in-game I can see Dovahkiin perfectly fine however some people on the server CAN see the playermodel, some cannot. I do not know what the problem is. Any help is greatly appreciated.

Kind regards,
Nova.


(User was banned for this post ("Didn't read the sticky" - Asaratha))

[lua] resource.AddWorkshop(“156922874”) [/lua] in a serverside file.

Like, create a file in lua/autorun/server/

and paste that in there.

That will fix it?

It should. Thats workshopdl, an easier form of fastdl. You can add any workshop file that you want a client to see, hear, etc.

Short tutorial here: https://github.com/SubjectAlpha/Small-Scripts/blob/master/lua/autorun/server/workshop.lua

Ok, will try it. Thanks.