Discord
Steam
/
Garry's Mod
/
Help
/
Pointshop Cust..
Login/Join
Event Log
Pointshop Custom Trails Crashes game
4 replies, posted
Search
In This Thread
Custom Trails crashes the server when i remove them it works but i want them to work and be there instead of crashing
Post the code for one that crashes.
[CODE]ITEM.Name = 'Weed' ITEM.Price = 350 ITEM.Material = 'trails/weed.vtf' function ITEM:OnEquip(ply, modifications) ply.PlasmaTrail = util.SpriteTrail(ply, 0, modifications.color, false, 15, 1, 4, 0.125, self.Material) end function ITEM:OnHolster(ply) SafeRemoveEntity(ply.PlasmaTrail) end function ITEM:Modify(modifications) PS:ShowColorChooser(self, modifications) end function ITEM:OnModify(ply, modifications) SafeRemoveEntity(ply.PlasmaTrail) self:OnEquip(ply, modifications) end [/CODE]
Why are you using ply.PlasmaTrail?
Sorry, you need to
Log In
to post a reply to this thread.