Adding models to server issue

Like when i joined my server it showed it downloading the model said extracting but there is still a Error Sign in pointshop.

I used GMAD to extract the model placed it in a new folder and transferred it to my server.
under the pointshop model it looks like this


ITEM.Name = 'knight'
ITEM.Price = 1000
ITEM.Model = 'models/player/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

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

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

if (SERVER) then
    resource.AddSingleFile( "models/nikout/darksouls/characters/darkmoonknightess.mdl" )
    resource.AddSingleFile( "models/nikout/darksouls/characters/darkmoonknightess.sw.vtx" )
    resource.AddSingleFile( "materials/models/darksouls/b.vtf" )
    resource.AddSingleFile( "materials/models/darksouls/souls_warp.vtf" )
    resource.AddSingleFile( "materials/models/darksouls/shared/green.vtf" )
    resource.AddSingleFile( "materials/models/darksouls/characters/clothdetail.vtf" )
    resource.AddSingleFile( "materials/models/darksouls/characters/detail_metal.vtf" )
    resource.AddSingleFile( "materials/models/darksouls/characters/exp.vtf" )
    resource.AddSingleFile( "materials/models/darksouls/characters/lightwarp.vtf" )
    resource.AddSingleFile( "materials/models/darksouls/characters/souls_warp.vtf" )
    resource.AddSingleFile( "materials/models/darksouls/characters/testwarp.vtf" )
    resource.AddSingleFile( "materials/models/darksouls/characters/testwarp_blue.vtf" )
    resource.AddSingleFile( "materials/models/darksouls/characters/testwarp_gold.vtf" )
    resource.AddSingleFile( "materials/models/darksouls/characters/testwarp_red.vtf" )
    resource.AddSingleFile( "materials/models/darksouls/characters/darkmoonknightees/arms.vmt" )
    resource.AddSingleFile( "materials/models/darksouls/characters/darkmoonknightees/arms.vtf" )
    resource.AddSingleFile( "materials/models/darksouls/characters/darkmoonknightees/arms_n.vtf" )
    resource.AddSingleFile( "materials/models/darksouls/characters/darkmoonknightees/body1.vmt" )
    resource.AddSingleFile( "materials/models/darksouls/characters/darkmoonknightees/body1.vtf" )
    resource.AddSingleFile( "materials/models/darksouls/characters/darkmoonknightees/body1_n.vtf" )
    resource.AddSingleFile( "materials/models/darksouls/characters/darkmoonknightees/body2.vmt" )
    resource.AddSingleFile( "materials/models/darksouls/characters/darkmoonknightees/body2.vtf" )
    resource.AddSingleFile( "materials/models/darksouls/characters/darkmoonknightees/body2_n.vtf" )
    resource.AddSingleFile( "materials/models/darksouls/characters/darkmoonknightees/green.vtf" )
    resource.AddSingleFile( "materials/models/darksouls/characters/darkmoonknightees/helmet.vmt" )
    resource.AddSingleFile( "materials/models/darksouls/characters/darkmoonknightees/helmet.vtf" )
    resource.AddSingleFile( "materials/models/darksouls/characters/darkmoonknightees/helmet_n.vtf" )
    resource.AddSingleFile( "materials/models/darksouls/characters/darkmoonknightees/legs.vmt" )
    resource.AddSingleFile( "materials/models/darksouls/characters/darkmoonknightees/legs.vtf" )
    resource.AddSingleFile( "materials/models/darksouls/characters/darkmoonknightees/legs_n.vtf" )
    resource.AddSingleFile( "materials/models/darksouls/characters/darkmoonknightees/souls_warp.vtf" )
    resource.AddSingleFile( "bziped/models/nikout/darksouls/characters/darkmoonknightess.mdl.bz2" )
    resource.AddSingleFile( "bziped/models/nikout/darksouls/characters/darkmoonknightess.sw.vtx.bz2" )
    resource.AddSingleFile( "bziped/materials/models/darksouls/b.vtf.bz2" )
    resource.AddSingleFile( "bziped/materials/models/darksouls/souls_warp.vtf.bz2" )
    resource.AddSingleFile( "bziped/materials/models/darksouls/shared/green.vtf.bz2" )
    resource.AddSingleFile( "bziped/materials/models/darksouls/characters/clothdetail.vtf.bz2" )
    resource.AddSingleFile( "bziped/materials/models/darksouls/characters/detail_metal.vtf.bz2" )
    resource.AddSingleFile( "bziped/materials/models/darksouls/characters/exp.vtf.bz2" )
    resource.AddSingleFile( "bziped/materials/models/darksouls/characters/lightwarp.vtf.bz2" )
    resource.AddSingleFile( "bziped/materials/models/darksouls/characters/souls_warp.vtf.bz2" )
    resource.AddSingleFile( "bziped/materials/models/darksouls/characters/testwarp.vtf.bz2" )
    resource.AddSingleFile( "bziped/materials/models/darksouls/characters/testwarp_blue.vtf.bz2" )
    resource.AddSingleFile( "bziped/materials/models/darksouls/characters/testwarp_gold.vtf.bz2" )
    resource.AddSingleFile( "bziped/materials/models/darksouls/characters/testwarp_red.vtf.bz2" )
    resource.AddSingleFile( "bziped/materials/models/darksouls/characters/darkmoonknightees/arms.vmt.bz2" )
    resource.AddSingleFile( "bziped/materials/models/darksouls/characters/darkmoonknightees/arms.vtf.bz2" )
    resource.AddSingleFile( "bziped/materials/models/darksouls/characters/darkmoonknightees/arms_n.vtf.bz2" )
    resource.AddSingleFile( "bziped/materials/models/darksouls/characters/darkmoonknightees/body1.vmt.bz2" )
    resource.AddSingleFile( "bziped/materials/models/darksouls/characters/darkmoonknightees/body1.vtf.bz2" )
    resource.AddSingleFile( "bziped/materials/models/darksouls/characters/darkmoonknightees/body1_n.vtf.bz2" )
    resource.AddSingleFile( "bziped/materials/models/darksouls/characters/darkmoonknightees/body2.vmt.bz2" )
    resource.AddSingleFile( "bziped/materials/models/darksouls/characters/darkmoonknightees/body2.vtf.bz2" )
    resource.AddSingleFile( "bziped/materials/models/darksouls/characters/darkmoonknightees/body2_n.vtf.bz2" )
    resource.AddSingleFile( "bziped/materials/models/darksouls/characters/darkmoonknightees/green.vtf.bz2" )
    resource.AddSingleFile( "bziped/materials/models/darksouls/characters/darkmoonknightees/helmet.vmt.bz2" )
    resource.AddSingleFile( "bziped/materials/models/darksouls/characters/darkmoonknightees/helmet.vtf.bz2" )
    resource.AddSingleFile( "bziped/materials/models/darksouls/characters/darkmoonknightees/helmet_n.vtf.bz2" )
    resource.AddSingleFile( "bziped/materials/models/darksouls/characters/darkmoonknightees/legs.vmt.bz2" )
    resource.AddSingleFile( "bziped/materials/models/darksouls/characters/darkmoonknightees/legs.vtf.bz2" )
    resource.AddSingleFile( "bziped/materials/models/darksouls/characters/darkmoonknightees/legs_n.vtf.bz2" )
    resource.AddSingleFile( "bziped/materials/models/darksouls/characters/darkmoonknightees/souls_warp.vtf.bz2" )
    resource.AddWorkshop( "285305391" )
    resource.AddWorkshop( "261585281" )
end

and under /garrysmod/lua/autorun/server/
resource.lua


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

if (SERVER) then
    resource.AddSingleFile( "models/nikout/darksouls/characters/darkmoonknightess.mdl" )
    resource.AddSingleFile( "models/nikout/darksouls/characters/darkmoonknightess.sw.vtx" )
    resource.AddSingleFile( "materials/models/darksouls/b.vtf" )
    resource.AddSingleFile( "materials/models/darksouls/souls_warp.vtf" )
    resource.AddSingleFile( "materials/models/darksouls/shared/green.vtf" )
    resource.AddSingleFile( "materials/models/darksouls/characters/clothdetail.vtf" )
    resource.AddSingleFile( "materials/models/darksouls/characters/detail_metal.vtf" )
    resource.AddSingleFile( "materials/models/darksouls/characters/exp.vtf" )
    resource.AddSingleFile( "materials/models/darksouls/characters/lightwarp.vtf" )
    resource.AddSingleFile( "materials/models/darksouls/characters/souls_warp.vtf" )
    resource.AddSingleFile( "materials/models/darksouls/characters/testwarp.vtf" )
    resource.AddSingleFile( "materials/models/darksouls/characters/testwarp_blue.vtf" )
    resource.AddSingleFile( "materials/models/darksouls/characters/testwarp_gold.vtf" )
    resource.AddSingleFile( "materials/models/darksouls/characters/testwarp_red.vtf" )
    resource.AddSingleFile( "materials/models/darksouls/characters/darkmoonknightees/arms.vmt" )
    resource.AddSingleFile( "materials/models/darksouls/characters/darkmoonknightees/arms.vtf" )
    resource.AddSingleFile( "materials/models/darksouls/characters/darkmoonknightees/arms_n.vtf" )
    resource.AddSingleFile( "materials/models/darksouls/characters/darkmoonknightees/body1.vmt" )
    resource.AddSingleFile( "materials/models/darksouls/characters/darkmoonknightees/body1.vtf" )
    resource.AddSingleFile( "materials/models/darksouls/characters/darkmoonknightees/body1_n.vtf" )
    resource.AddSingleFile( "materials/models/darksouls/characters/darkmoonknightees/body2.vmt" )
    resource.AddSingleFile( "materials/models/darksouls/characters/darkmoonknightees/body2.vtf" )
    resource.AddSingleFile( "materials/models/darksouls/characters/darkmoonknightees/body2_n.vtf" )
    resource.AddSingleFile( "materials/models/darksouls/characters/darkmoonknightees/green.vtf" )
    resource.AddSingleFile( "materials/models/darksouls/characters/darkmoonknightees/helmet.vmt" )
    resource.AddSingleFile( "materials/models/darksouls/characters/darkmoonknightees/helmet.vtf" )
    resource.AddSingleFile( "materials/models/darksouls/characters/darkmoonknightees/helmet_n.vtf" )
    resource.AddSingleFile( "materials/models/darksouls/characters/darkmoonknightees/legs.vmt" )
    resource.AddSingleFile( "materials/models/darksouls/characters/darkmoonknightees/legs.vtf" )
    resource.AddSingleFile( "materials/models/darksouls/characters/darkmoonknightees/legs_n.vtf" )
    resource.AddSingleFile( "materials/models/darksouls/characters/darkmoonknightees/souls_warp.vtf" )
    resource.AddSingleFile( "bziped/models/nikout/darksouls/characters/darkmoonknightess.mdl.bz2" )
    resource.AddSingleFile( "bziped/models/nikout/darksouls/characters/darkmoonknightess.sw.vtx.bz2" )
    resource.AddSingleFile( "bziped/materials/models/darksouls/b.vtf.bz2" )
    resource.AddSingleFile( "bziped/materials/models/darksouls/souls_warp.vtf.bz2" )
    resource.AddSingleFile( "bziped/materials/models/darksouls/shared/green.vtf.bz2" )
    resource.AddSingleFile( "bziped/materials/models/darksouls/characters/clothdetail.vtf.bz2" )
    resource.AddSingleFile( "bziped/materials/models/darksouls/characters/detail_metal.vtf.bz2" )
    resource.AddSingleFile( "bziped/materials/models/darksouls/characters/exp.vtf.bz2" )
    resource.AddSingleFile( "bziped/materials/models/darksouls/characters/lightwarp.vtf.bz2" )
    resource.AddSingleFile( "bziped/materials/models/darksouls/characters/souls_warp.vtf.bz2" )
    resource.AddSingleFile( "bziped/materials/models/darksouls/characters/testwarp.vtf.bz2" )
    resource.AddSingleFile( "bziped/materials/models/darksouls/characters/testwarp_blue.vtf.bz2" )
    resource.AddSingleFile( "bziped/materials/models/darksouls/characters/testwarp_gold.vtf.bz2" )
    resource.AddSingleFile( "bziped/materials/models/darksouls/characters/testwarp_red.vtf.bz2" )
    resource.AddSingleFile( "bziped/materials/models/darksouls/characters/darkmoonknightees/arms.vmt.bz2" )
    resource.AddSingleFile( "bziped/materials/models/darksouls/characters/darkmoonknightees/arms.vtf.bz2" )
    resource.AddSingleFile( "bziped/materials/models/darksouls/characters/darkmoonknightees/arms_n.vtf.bz2" )
    resource.AddSingleFile( "bziped/materials/models/darksouls/characters/darkmoonknightees/body1.vmt.bz2" )
    resource.AddSingleFile( "bziped/materials/models/darksouls/characters/darkmoonknightees/body1.vtf.bz2" )
    resource.AddSingleFile( "bziped/materials/models/darksouls/characters/darkmoonknightees/body1_n.vtf.bz2" )
    resource.AddSingleFile( "bziped/materials/models/darksouls/characters/darkmoonknightees/body2.vmt.bz2" )
    resource.AddSingleFile( "bziped/materials/models/darksouls/characters/darkmoonknightees/body2.vtf.bz2" )
    resource.AddSingleFile( "bziped/materials/models/darksouls/characters/darkmoonknightees/body2_n.vtf.bz2" )
    resource.AddSingleFile( "bziped/materials/models/darksouls/characters/darkmoonknightees/green.vtf.bz2" )
    resource.AddSingleFile( "bziped/materials/models/darksouls/characters/darkmoonknightees/helmet.vmt.bz2" )
    resource.AddSingleFile( "bziped/materials/models/darksouls/characters/darkmoonknightees/helmet.vtf.bz2" )
    resource.AddSingleFile( "bziped/materials/models/darksouls/characters/darkmoonknightees/helmet_n.vtf.bz2" )
    resource.AddSingleFile( "bziped/materials/models/darksouls/characters/darkmoonknightees/legs.vmt.bz2" )
    resource.AddSingleFile( "bziped/materials/models/darksouls/characters/darkmoonknightees/legs.vtf.bz2" )
    resource.AddSingleFile( "bziped/materials/models/darksouls/characters/darkmoonknightees/legs_n.vtf.bz2" )
    resource.AddSingleFile( "bziped/materials/models/darksouls/characters/darkmoonknightees/souls_warp.vtf.bz2" )
    resource.AddWorkshop( "285305391" )
    resource.AddWorkshop( "261585281" )
end

  1. Take of the .bz2 extension of each one; those are automatic and do not need to be added into the file lines.
  2. Use resource.AddFile, not AddSingeFile.
  3. One you’ve changed it to AddFile, delete all model complements and only include .mdl files. Keep all of the .vmt and .vtf files.
  4. Do not put them in the Pointshop file. Move that file you listed second into lua/autorun.

clientside lua startup!
loaded rewards fonts
TEST [lua/autorun/ds_darkmoonknightess.lua][lua/autorun/resource.lua]
TEST [lua/autorun/jinx.lua][lua/autorun/resource.lua]
TEST [lua/autorun/mapvote.lua][lua/autorun/resource.lua]
TEST [lua/autorun/playerashe.lua][lua/autorun/resource.lua]

[ERROR] lua/autorun/resource.lua:5: unfinished string near ''materials/models/player/arms.vmt)'
  1. unknown - lua/autorun/resource.lua:0



Add the complementing quotation at the end of the file path

Post your new code.


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

if (SERVER) then
resource.AddFile('models/player/darkmoonknightess.mdl')
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")
end

You’re missing close quotes on each one except the first and last one.


if (SERVER) then
resource.AddFile("models/player/darkmoonknightess.mdl")
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")
end

did it like this uploaded restarted server still a huge red sign.
been srsly no joke trying to add one damn model since 11 central its already 5:34

  1. Where is that located?
  2. Post your sv_downloadurl.

It’s in resource.lua - /garrysmod/lua/autorun/


sv_downloadurl "http://n00bhideout.site.nfoservers.com/server"
sv_allowdownload 1
sv_allowupload 1
net_maxfilesize 64

darkmoonknightess.mdl isn’t bzipped. Also, set sv_allowdownload and upload to 0.

I got it now bro thanks

When you said

  1. Where is that located?

I was looking more and more and saw that i didn’t have any of the content where it was trying to DL from thank you it is pretty easy once you snap but yes since 11:00ish finally around 6:00 i got it smh