Hey, I’m running this code in a SWEP’s PrimaryAttack() function
if !self.Owner:GetPData(“PerkInfiniteAmmo”) then
// Remove 1 bullet from our clip
self:TakePrimaryAmmo( 1 )
… and it spams this error message, every time you shoot the weapon
It still reads the PData, and it works well. However, I don’t want people to see the message spam. Is there a way to at least hide it, or is there a fix for it?
The server I am coding on is a dedicated server. Not singleplayer if that makes a difference.