• Adding trails to Pointshop?
    4 replies, posted
I was curious at why gmod crashes (completely closes) when I equip this trail? I followed the template of the default ones :\ [code]ITEM.Name = 'Blood Trail' ITEM.Price = 375 ITEM.Material = 'trails/bloodtrail.vmt' function ITEM:OnEquip(ply, modifications) ply.BloodTrail = util.SpriteTrail(ply, 0, modifications.color, false, 15, 1, 4, 0.125, self.Material) end function ITEM:OnHolster(ply) SafeRemoveEntity(ply.BloodTrail) end function ITEM:Modify(modifications) PS:ShowColorChooser(self, modifications) end function ITEM:OnModify(ply, modifications) SafeRemoveEntity(ply.BloodTrail) self:OnEquip(ply, modifications) end[/code]
anyone?
here is my code for a rainbow trail it seems to work just fine [code]ITEM.Name = 'Rainbow Trail <20% Cooler>' ITEM.Price = 1000 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[/code] The thing is, i am not a pro with lua. But have you got the trail file in your gmod server files? [editline]13th March 2013[/editline] By trail i mean the bloodtrail.vmt
Yea..I can see the difference.. you just changed the vmt but left the original trail name.. odd ok I'll try that thanks
[QUOTE=kaytaro;39904796]Yea..I can see the difference.. you just changed the vmt but left the original trail name.. odd ok I'll try that thanks[/QUOTE] Okay, let me know if it worked
Sorry, you need to Log In to post a reply to this thread.