Derma panel opens multiple times when SWEP:PrimaryAttack() is called

Whenever I open the derma panel my SWEP uses in TTT, multiple panels open on top of eachother. Is there a way to fix this?

I’m fairly new to lua coding, so I’m trying my best. Thanks for replies.

I think IsFirstTimePredicted() is what you’re looking for.

Yes! Thank you so much. How do I close a thread? .-.

Hit the solved button.