First off this is my code
ITEM.Name = 'Wizz Swordd' // change this to whatever name you want ITEM.Price = 3500 // change this to whatever price you want ITEM.Model = 'models/weapons/w_irifle.mdl' // change this to what shop 'icon' you want ITEM.WeaponClass = 'weapon_zm_swordl' //change this to name for item you want to replace the crowbar with ITEM.SingleUse = false // makes it persist every time. This does sometimes bug out, a good suggestion would be to add more weapons before this weapon that work similar, may give a workaround to your issue. function ITEM:OnBuy(ply) ply:Give(self.WeaponClass) ply:SelectWeapon(self.WeaponClass) ply:StripWeapon('weapon_zm_improvised') end function ITEM:OnSell(ply) ply:StripWeapon(self.WeaponClass) end
It works on first buy then just never spawns back? even if you holster then re equip. It only works when you sell it and rebuy it agian, any ideas why?