Garry's Mod PointShop Trials

Hello, today I added a rainbow trial to my garrys mod point shop but when i join and equip it it does not appear. Also the icon in the pointshop is that black and blue tiled one like when you dont have textures for somthing. I dont know if it is FastDL or the I did not put the VMT anf VTF in the right location. Please help!

Post the code for it


ITEM.Name = 'Rainbow Trail'
ITEM.Price = 150
ITEM.Material = 'trails/rainbow.vmt'

function ITEM:OnEquip(ply, modifications)
	ply.ElectricTrail = util.SpriteTrail(ply, 0, modifications.color, false, 15, 1, 4, 0.125, self.Material)
end

function ITEM:OnHolster(ply)
	SafeRemoveEntity(ply.ElectricTrail)
end

function ITEM:Modify(modifications)
	PS:ShowColorChooser(self, modifications)
end

function ITEM:OnModify(ply, modifications)
	SafeRemoveEntity(ply.ElectricTrail)
	self:OnEquip(ply, modifications)
end

[editline]11th June 2014[/editline]

But where do i put trials/rainbow.vmt in the 3rd line in the config

use “trials/rainbow.vtf” instead of .vmt and upload it to garrysmod/materials/trails

ok Thanks

I tried that and it did not work, every time i equipped the trail it would crash my game.

Did you add the file to FastDL?

I use a site and I asked a support ticket like 2 weeks ago how to get all the files in and he said to put it in the corresponding folders then use FastDL Sync. But when I do that for the trails its doesent work…

[editline]12th June 2014[/editline]

And I think this is the same problem in having with adding player models.

Post fastdl code please

What code? All I have is this.

Your resource.AddFile code for sending files to the client. If you have no idea what that is, contact your host.

Tom, do you have a file in lua/autorun with resource.AddFile (yourfile) in it? http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index5809.html
This is needed to forceadd the trail to the fastDL.
After making the file, please use the FastDL sync button on your CP. This syncs all of your files to the host’s servers, and downloads them to the players.
If the above things do not work, try this:
sometimes with hosts you need to copy the files into a folder in the main directory (garrysmod/garrysmod) for it to fastDL sync to your host.
Hope this helps!
EDIT: If it is a workshop file, use the GMAD extractor http://www.treesoft.dk/gmod/gmad/ to find the addon and export the files. Then add to fastDL using tips above.

Ok, Thank you guys, sorry for the late reply but now im having errors with player models.

[editline]13th June 2014[/editline]


resource.AddFile("materials/trails/Rainbow.vmt")
resource.AddFile("materials/trails/Rainbow.vtf")

resource.AddFile("models/player/optimus_prime/rb_optimus_textset_color_normx.vmt")
resource.AddFile("models/player/optimus_prime/rb_optimus_textset_color_normx.vtf")
resource.AddFile("models/player/optimus_prime/rb_optimus_textset_color_normxz.vmt")
resource.AddFile("models/player/optimus_prime/rb_optimus_textset_masks_normy.vtf")
resource.AddFile("models/player/optimus_prime/rb_optimus_textset_masks_s.vtf")
resource.AddFile("models/player/optimus_prime/rb_optimushead_textset_color_normx.vmt")
resource.AddFile("models/player/optimus_prime/rb_optimushead_textset_color_normx.vtf")
resource.AddFile("models/player/optimus_prime/rb_optimushead_textset_masks_normy.vtf")

resource.AddFile("materials/models/player/optimus_prime/rb_optimus_textset_color_normx.vmt")
resource.AddFile("materials/models/player/optimus_prime/rb_optimus_textset_color_normx.vtf")
resource.AddFile("materials/models/player/optimus_prime/rb_optimus_textset_color_normxz.vmt")
resource.AddFile("materials/models/player/optimus_prime/rb_optimus_textset_masks_normy.vtf")
resource.AddFile("materials/models/player/optimus_prime/rb_optimus_textset_masks_s.vtf")
resource.AddFile("materials/models/player/optimus_prime/rb_optimushead_textset_color_normx.vmt")
resource.AddFile("materials/models/player/optimus_prime/rb_optimushead_textset_color_normx.vtf")
resource.AddFile("materials/models/player/optimus_prime/rb_optimushead_textset_masks_normy.vtf")

resource.Addfile ( "addons/pointshop-extras-master/models/astronauthelmet/astronauthelmet.dx80.vtx " )
resource.Addfile ( "addons/pointshop-extras-master/models/astronauthelmet/astronauthelmet.dx90.vtx " )
resource.Addfile ( "addons/pointshop-extras-master/models/astronauthelmet/astronauthelmet.mdl " )
resource.Addfile ( "addons/pointshop-extras-master/models/astronauthelmet/astronauthelmet.phy " )
resource.Addfile ( "addons/pointshop-extras-master/models/astronauthelmet/astronauthelmet.sw.vtx " )
resource.Addfile ( "addons/pointshop-extras-master/models/astronauthelmet/astronauthelmet.vvd" )
 
resource.Addfile ( "addons/pointshop-extras-master/models/cakehat/cakehat.dx80.vtx " )
resource.Addfile ( "addons/pointshop-extras-master/models/cakehat/cakehat.dx90.vtx " )
resource.Addfile ( "addons/pointshop-extras-master/models/cakehat/cakehat.mdl " )
resource.Addfile ( "addons/pointshop-extras-master/models/cakehat/cakehat.phy " )
resource.Addfile ( "addons/pointshop-extras-master/models/cakehat/cakehat.sw.vtx " )
resource.Addfile ( "addons/pointshop-extras-master/models/cakehat/cakehat.vvd " )
 
resource.Addfile ( "addons/pointshop-extras-master/models/duncehat/duncehat.dx80.vtx " )
resource.Addfile ( "addons/pointshop-extras-master/models/duncehat/duncehat.dx90.vtx " )
resource.Addfile ( "addons/pointshop-extras-master/models/duncehat/duncehat.mdl " )
resource.Addfile ( "addons/pointshop-extras-master/models/duncehat/duncehat.phy " )
resource.Addfile ( "addons/pointshop-extras-master/models/duncehat/duncehat.sw.vtx " )
resource.Addfile ( "addons/pointshop-extras-master/models/duncehat/duncehat.vvd " )
 
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/3dglasses.dx80.vtx " )
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/3dglasses.dx90.vtx " )
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/3dglasses.mdl " )
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/3dglasses.sw.vtx " )
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/3dglasses.vvd " )
 
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/afro.dx80.vtx " )
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/afro.dx90.vtx " )
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/afro.mdl " )
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/afro.sw.vtx " )
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/afro.vvd " )
 
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/aviators.dx80.vtx " )
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/aviators.dx90.vtx " )
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/aviators.mdl " )
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/aviators.sw.vtx " )
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/aviators.vvd " )
 
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/catears.dx80.vtx " )
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/catears.dx90.vtx " )
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/catears.mdl " )
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/catears.sw.vtx " )
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/catears.vvd " )
 
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/fedorahat.dx80.vtx " )
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/fedorahat.dx00.vtx " )
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/fedorahat.mdl " )
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/fedorahat.sw.vtx " )
 
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/kfcbucket.dx80.vtx " )
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/kfcbucket.dx90.vtx " )
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/kfcbucket.mdl " )
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/kfcbucket.sw.vtx " )
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/kfcbucket.vvd " )
 
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/kleinerglasses.dx80.vtx " )
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/kleinerglasses.dx90.vtx " )
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/kleinerglasses.mdl " )
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/kleinerglasses.sw.vtx " )
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/kleinerglasses.vvd " )
 
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/linkhat.dx80.vtx " )
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/linkhat.dx90.vtx " )
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/linkhat.mdl " )
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/linkhat.sw.vtx " )
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/linkhat.vvd " )
 
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/majorasmask.dx80.vtx " )
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/majorasmask.dx90.vtx " )
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/majorasmask.mdl " )
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/majorasmask.sw.vtx " )
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/majorasmask.vvd " )
 
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/midnahat.dx80.vtx " )
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/midnahat.dx90.vtx " )
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/midnahat.mdl " )
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/midnahat.sw.vtx " )
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/midnahat.vvd " )
 
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/partyhat.dx80.vtx " )
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/partyhat.dx90.vtx " )
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/partyhat.mdl " )
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/partyhat.sw.vtx " )
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/partyhat.vvd " )
 
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/seusshat.dx80.vtx " )
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/seusshat.dx90.vtx " )
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/seusshat.mdl " )
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/seusshat.sw.vtx " )
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/seusshat.vvd " )
 
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/sombrero.dx80.vtx " )
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/sombrero.dx90.vtx " )
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/sombrero.mdl " )
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/sombrero.sw.vtx " )
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/sombrero.vvd " )
 
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/starglasses.dx80.vtx " )
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/starglasses.dx90.vtx " )
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/starglasses.mdl " )
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/starglasses.sw.vtx " )
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/starglasses.vvd " )
 
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/toetohat.dx80.vtx " )
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/toetohat.dx90.vtx " )
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/toetohat.mdl " )
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/toetohat.sw.vtx " )
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/toetohat.vvd " )
 
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/tophat.dx80.vtx " )
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/tophat.dx90.vtx " )
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/tophat.mdl " )
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/tophat.sw.vtx " )
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/tophat.vvd " )
 
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/witchhat.dx80.vtx " )
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/witchhat.dx90.vtx " )
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/witchhat.mdl " )
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/witchhat.sw.vtx " )
resource.Addfile ( "addons/pointshop-extras-master/models/gmod_tower/witchhat.vvd " )
 
resource.Addfile ( "addons/pointshop-extras-master/models/sam/antlers.dx80.vtx " )
resource.Addfile ( "addons/pointshop-extras-master/models/sam/antlers.dx90.vtx " )
resource.Addfile ( "addons/pointshop-extras-master/models/sam/antlers.mdl " )
resource.Addfile ( "addons/pointshop-extras-master/models/sam/antlers.sw.vtx " )
resource.Addfile ( "addons/pointshop-extras-master/models/sam/antlers.vvd " )
resource.Addfile ( "addons/pointshop-extras-master/models/sam/drinkcap.dx80.vtx " )
resource.Addfile ( "addons/pointshop-extras-master/models/sam/drinkcap.dx90.vtx " )
resource.Addfile ( "addons/pointshop-extras-master/models/sam/drinkcap.dxmdl " )
resource.Addfile ( "addons/pointshop-extras-master/models/sam/drinkcap.sw.vtx " )
resource.Addfile ( "addons/pointshop-extras-master/models/sam/drinkcap.vvd " )
 
resource.Addfile ( "addons/pointshop-extras-master/models/santa/santa.dx80.vtx " )
resource.Addfile ( "addons/pointshop-extras-master/models/santa/santa.dx90.vtx " )
resource.Addfile ( "addons/pointshop-extras-master/models/santa/santa.mdl " )
resource.Addfile ( "addons/pointshop-extras-master/models/santa/santa.sw.vtx " )
resource.Addfile ( "addons/pointshop-extras-master/models/santa/santa.vvd " )
 
resource.Addfile ( "addons/pointshop-extras-master/models/vikinghelmet/vikinghelmet.dx80.vtx " )
resource.Addfile ( "addons/pointshop-extras-master/models/vikinghelmet/vikinghelmet.dx90.vtx " )
resource.Addfile ( "addons/pointshop-extras-master/models/vikinghelmet/vikinghelmet.mdl " )
resource.Addfile ( "addons/pointshop-extras-master/models/vikinghelmet/vikinghelmet.phy " )
resource.Addfile ( "addons/pointshop-extras-master/models/vikinghelmet/vikinghelmet.sw.vtx " )
resource.Addfile ( "addons/pointshop-extras-master/models/vikinghelmet/vikinghelmet.vvd " )


I put all the file in and also put it in the recourse.add ( The Optimus Prime Code in the first few lines is the player model.)
http://imgur.com/a/O2n8s/all

All resource.AddFile lines should start with sound, resource, materials, or models. Don’t start with addons/(addonname)

oh, ok Thanks, but what about this code it starts with models. Thats what im having trouble with, the player models are errors.


resource.AddFile("models/player/optimus_prime/rb_optimus_textset_color_normx.vmt")
resource.AddFile("models/player/optimus_prime/rb_optimus_textset_color_normx.vtf")
resource.AddFile("models/player/optimus_prime/rb_optimus_textset_color_normxz.vmt")
resource.AddFile("models/player/optimus_prime/rb_optimus_textset_masks_normy.vtf")
resource.AddFile("models/player/optimus_prime/rb_optimus_textset_masks_s.vtf")
resource.AddFile("models/player/optimus_prime/rb_optimushead_textset_color_normx.vmt")
resource.AddFile("models/player/optimus_prime/rb_optimushead_textset_color_normx.vtf")
resource.AddFile("models/player/optimus_prime/rb_optimushead_textset_masks_normy.vtf")

Those are textures, not .mdl files.

Ok, I redid it and it still doesent work


resource.AddFile("materials/trails/Rainbow.vmt")
resource.AddFile("materials/trails/Rainbow.vtf")
resource.AddFile("models/player/optimus_prime/optimus_prime.dx80.vtx")
resource.AddFile("models/player/optimus_prime/optimus_prime.dx90.vtx")
resource.AddFile("models/player/optimus_prime/optimus_prime.mdl")
resource.AddFile("models/player/optimus_prime/optimus_prime.phy")
resource.AddFile("models/player/optimus_prime/optimus_prime.sw.vtx")
resource.AddFile("models/player/optimus_prime/optimus_prime.vvd")
resource.AddFile("materials/models/player/optimus_prime/rb_optimus_textset_color_normx.vmt")
resource.AddFile("materials/models/player/optimus_prime/rb_optimus_textset_color_normx.vtf")
resource.AddFile("materials/models/player/optimus_prime/rb_optimus_textset_color_normxz.vmt")
resource.AddFile("materials/models/player/optimus_prime/rb_optimus_textset_masks_normy.vtf")
resource.AddFile("materials/models/player/optimus_prime/rb_optimus_textset_masks_s.vtf")
resource.AddFile("materials/models/player/optimus_prime/rb_optimushead_textset_color_normx.vmt")
resource.AddFile("materials/models/player/optimus_prime/rb_optimushead_textset_color_normx.vtf")
resource.AddFile("materials/models/player/optimus_prime/rb_optimushead_textset_masks_normy.vtf")

Post your sv_downloadurl.

[del]Is this placed in your lua/autorun folder?[/del] – I’m retarded.
If it isn’t placed in lua/autorun/server, add
if SERVER then
{resources}
end.

Tell me if this works!

Or just move it to lua/autorun/server.