• TTT Pointshop - Player Models Not (Force?) Downloading Textures
    7 replies, posted
We have been adding player models to our TTT server pointshop and all is going well. The only thing is people who didnt already have the model downloaded, just see the model as purple/black squares or completely black. We have tried adding in "resource.AddFile("models/player/bobafett.mdl")" for all the different resources but it still doesnt seem to do it. All the files are up on the FastDL server as well. This is the lua file of one of the models we are trying to figure out: [CODE]resource.AddFile("models/player/bobafett.mdl") resource.AddFile("models/player/bobafett.dx80.vtx.bz2") resource.AddFile("models/player/bobafett.dx90.vtx.bz2") resource.AddFile("models/player/bobafett.mdl.bz2") resource.AddFile("models/player/bobafett.phy.bz2") resource.AddFile("models/player/bobafett.sw.vtx.bz2") resource.AddFile("models/player/bobafett.vvd.bz2") resource.AddFile("models/player/boba_body.vmt.bz2") resource.AddFile("models/player/boba_body.vtf.bz2") resource.AddFile("models/player/boba_hands.vmt.bz2") resource.AddFile("models/player/boba_hands.vtf.bz2") resource.AddFile("models/player/boba_head_revised.vmt.bz2") resource.AddFile("models/player/boba_head_revised.vtf.bz2") ITEM.Name = 'Boba Fett' ITEM.Price = 30050 ITEM.Model = 'models/player/bobafett.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 [/CODE] Any help would be much appreciated, cheers.
Don't use the pointshop file. Make one file in lua/autorun/server
[QUOTE=Humility;42366146]Don't use the pointshop file. Make one file in lua/autorun/server[/QUOTE] It doesn't matter. @Inheartswake, Remove .bz2 extension from your paths in your Lua.
[QUOTE=Robotboy655;42366292]It doesn't matter. @Inheartswake, Remove .bz2 extension from your paths in your Lua.[/QUOTE] I edited the lua file and removed all the .bz2 extensions, and after a map change it did say "downloading... ..boba..." etc while loading. But its still missing the texture in when the map loads. Do you think it might need a server restart?
It might need you to extract the files to your garrysmod/garrysmod/materials/ folder, instead of garrysmod/garrysmod/addons/whatever/materials/ And you must have those files on your FastDL server, post your FastDL link too by the way.
[QUOTE=Robotboy655;42366593]It might need you to extract the files to your garrysmod/garrysmod/materials/ folder, instead of garrysmod/garrysmod/addons/whatever/materials/ And you must have those files on your FastDL server, post your FastDL link too by the way.[/QUOTE] Ill make sure all the files are in the right place now. FastDL: [url]http://103.23.148.222/ChrisL/144/[/url] EDIT: Yeah everything seems to be in the right spot
bump?
Try putting non-bz2 files to the fastDL. And maybe bz2 to your server.
Sorry, you need to Log In to post a reply to this thread.