function SWEP:Holster() if SERVER and self.Primary.Clips < 1 then self.Owner:StripWeapon( self.Weapon:GetClass() ) end return true end
So essentially I have these disposable grenades, and once the player has used up their ammo, the game strips the weapon when they select a new weapon.
This used to work, now it hardcrashes the server with no errors.
I’d prefer to keep the weapon stripping behaviour (since it makes sense to remove disposables) so I’d like to know if anyone has a working way of doing this.
This is also kind of a bug report since I think a crash to desktop is hardly ideal for something like this.