Pointshop adding models.

Hello, so I want to add a workshop addon onto pointshop, so I used the GMAD extractor to get the model and I use Fox warriors generator to get the resource.AddFile code.


if SERVER then
resource.AddFile('models/player/darkmoonknightess.mdl')
resource.AddFile('materials/models/player/darkmoonknightess.dx90.vtx)
resource.AddFile('materials/models/player/darkmoonknightess.dx80.vtx)
resource.AddFile('materials/models/player/darkmoonknightess.phy)
resource.AddFile('materials/models/player/darkmoonknightess.sw.vtx)
resource.AddFile('materials/models/player/darkmoonknightess.vvd)
resource.AddFile('materials/models/player/arms.vmt)
resource.AddFile('materials/models/player/arms.vtf)
resource.AddFile('materials/models/player/arms_n.vtf)
resource.AddFile('materials/models/player/body1.vmt)
resource.AddFile('materials/models/player/body1.vtf)
resource.AddFile('materials/models/player/body2.vmt)
resource.AddFile('materials/models/player/body2.vtf)
resource.AddFile('materials/models/player/body2_n.vtf)
resource.AddFile('materials/models/player/helmet.vmt)
resource.AddFile('materials/models/player/helmet.vtf)
resource.AddFile('materials/models/player/helmet_n.vtf)
resource.AddFile('materials/models/player/legs.vmt)
resource.AddFile('materials/models/player/legs.vtf)
resource.AddFile('materials/models/player/legs_n.vtf)
resource.AddFile('materials/models/player/detail_metal.vtf)
resource.AddFile('materials/models/player/exp.vtf)
resource.AddFile('materials/models/player/lightwarp.vtf)
resource.AddWorkshop( string 261585281 )
end

^^Autorun lua file^^


ITEM.Name = 'Darkmoon Knightess'
ITEM.Price = 9001
ITEM.Model = 'models/nikout/darksouls/characters/darkmoonknightess.mdl'


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


^^My item code^^

So it works for me, but no-one else on the server. Please help.

Well, You need to setup FastDL
also, resource.AddWorkshop( string 261585281 ) should be
resource.AddWorkshop( “261585281” )

and the resource.AddFiles should have " in the beginning of the value and " at the end.
Instead of the ’ you used.

for example:


resource.AddFile('materials/models/player/lightwarp.vtf)

should be


resource.AddFile("materials/models/player/lightwarp.vtf")

Thanks, I’ll try that. Funny avatar btw lol