So how do i force download player models to download

for the love of god don’t troll me! I am just a noob trying to get this:http://www.garrysmod.org/downloads/?a=view&id=90664 To show up as a player-model so that other people can see it and not an error I did not know how to put that. lolz

This is it.

resource.AddSingleFile( ‘/info.txt’ )
resource.AddSingleFile( ‘/models/player/miku.dx80.vtx’ )
resource.AddSingleFile( ‘/models/player/miku.dx90.vtx’ )
resource.AddSingleFile( ‘/models/player/miku.mdl’ )
resource.AddSingleFile( ‘/models/player/miku.phy’ )
resource.AddSingleFile( ‘/models/player/miku.sw.vtx’ )
resource.AddSingleFile( ‘/models/player/miku.vvd’ )
resource.AddSingleFile( ‘/materials/models/player/hatsunemiku/01_skin.vmt’ )
resource.AddSingleFile( ‘/materials/models/player/hatsunemiku/01_skin.vtf’ )
resource.AddSingleFile( ‘/materials/models/player/hatsunemiku/black.vmt’ )
resource.AddSingleFile( ‘/materials/models/player/hatsunemiku/black.vtf’ )
resource.AddSingleFile( ‘/materials/models/player/hatsunemiku/boots.vmt’ )
resource.AddSingleFile( ‘/materials/models/player/hatsunemiku/boots.vtf’ )
resource.AddSingleFile( ‘/materials/models/player/hatsunemiku/dark_gray.vmt’ )
resource.AddSingleFile( ‘/materials/models/player/hatsunemiku/dark_gray.vtf’ )
resource.AddSingleFile( ‘/materials/models/player/hatsunemiku/eyeshadow.vmt’ )
resource.AddSingleFile( ‘/materials/models/player/hatsunemiku/eyeshadow.vtf’ )
resource.AddSingleFile( ‘/materials/models/player/hatsunemiku/face.vmt’ )
resource.AddSingleFile( ‘/materials/models/player/hatsunemiku/face.vtf’ )
resource.AddSingleFile( ‘/materials/models/player/hatsunemiku/fuku.vmt’ )
resource.AddSingleFile( ‘/materials/models/player/hatsunemiku/fuku.vtf’ )
resource.AddSingleFile( ‘/materials/models/player/hatsunemiku/giza.vmt’ )
resource.AddSingleFile( ‘/materials/models/player/hatsunemiku/giza.vtf’ )
resource.AddSingleFile( ‘/materials/models/player/hatsunemiku/gray.vmt’ )
resource.AddSingleFile( ‘/materials/models/player/hatsunemiku/gray.vtf’ )
resource.AddSingleFile( ‘/materials/models/player/hatsunemiku/hair.vmt’ )
resource.AddSingleFile( ‘/materials/models/player/hatsunemiku/hair.vtf’ )
resource.AddSingleFile( ‘/materials/models/player/hatsunemiku/hilight.vmt’ )
resource.AddSingleFile( ‘/materials/models/player/hatsunemiku/hilight.vtf’ )
resource.AddSingleFile( ‘/materials/models/player/hatsunemiku/hitomi.vmt’ )
resource.AddSingleFile( ‘/materials/models/player/hatsunemiku/hitomi.vtf’ )
resource.AddSingleFile( ‘/materials/models/player/hatsunemiku/kousai.vmt’ )
resource.AddSingleFile( ‘/materials/models/player/hatsunemiku/kousai.vtf’ )
resource.AddSingleFile( ‘/materials/models/player/hatsunemiku/matsuge.vmt’ )
resource.AddSingleFile( ‘/materials/models/player/hatsunemiku/matsuge.vtf’ )
resource.AddSingleFile( ‘/materials/models/player/hatsunemiku/mouth.vmt’ )
resource.AddSingleFile( ‘/materials/models/player/hatsunemiku/mouth.vtf’ )
resource.AddSingleFile( ‘/materials/models/player/hatsunemiku/pants.vmt’ )
resource.AddSingleFile( ‘/materials/models/player/hatsunemiku/pants.vtf’ )
resource.AddSingleFile( ‘/materials/models/player/hatsunemiku/pink.vmt’ )
resource.AddSingleFile( ‘/materials/models/player/hatsunemiku/pink.vtf’ )
resource.AddSingleFile( ‘/materials/models/player/hatsunemiku/sirome.vmt’ )
resource.AddSingleFile( ‘/materials/models/player/hatsunemiku/sirome.vtf’ )
resource.AddSingleFile( ‘/materials/models/player/hatsunemiku/skin.vmt’ )
resource.AddSingleFile( ‘/materials/models/player/hatsunemiku/skin.vtf’ )
resource.AddSingleFile( ‘/materials/models/player/hatsunemiku/sode.vmt’ )
resource.AddSingleFile( ‘/materials/models/player/hatsunemiku/sode.vtf’ )
resource.AddSingleFile( ‘/materials/models/player/hatsunemiku/tan.vmt’ )
resource.AddSingleFile( ‘/materials/models/player/hatsunemiku/tan.vtf’ )
resource.AddSingleFile( ‘/materials/models/player/hatsunemiku/teeth.vmt’ )
resource.AddSingleFile( ‘/materials/models/player/hatsunemiku/teeth.vtf’ )
resource.AddSingleFile( ‘/materials/models/player/hatsunemiku/tongue.vmt’ )
resource.AddSingleFile( ‘/materials/models/player/hatsunemiku/tongue.vtf’ )

So if someone could help me… God bless you. :smiley:

Well theres a guide how to do this a little longer down in the section: http://www.facepunch.com/showthread.php?t=863730
I guess you can use that.

It did help me but, I think i am doing something wrong i downloaded a Resource Script Generator, and it gave me two files one that say’s Hatsune Mikurename_me and the other Hatsune Mikuresorces Do i put them both in the auto-run/server or what?

You don’t need resource.AddSingleFile( ‘/info.txt’ )

And on all of the others, remove the first /

I’ll help a fellow Miku fan, give me a second.

[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.."/*")) do
	resource.AddFile(dir.."/"..v)
end

end

AddDir(“materials/models/player/hatsunemiku”)
resource.AddFile( ‘models/player/miku.dx80.vtx’ )
resource.AddFile( ‘models/player/miku.dx90.vtx’ )
resource.AddFile( ‘models/player/miku.mdl’ )
resource.AddFile( ‘models/player/miku.phy’ )
resource.AddFile( ‘models/player/miku.sw.vtx’ )
resource.AddFile( ‘models/player/miku.vvd’ )
[/lua]

Save as anyfilename.lua in /lua/autorun/server

Just delete the “/” in the start of every string.

Thanks so much! it works! :smiley: