Just add a text variable, name it "currentGun".
When you equip the gun, add an event "currentGun": set to [gunname].
The exact way how to do this depends hardly on the way your weapon/equipment system works.
So if you need more help, e.g. on how to get the gun name, you need to share some details, or, even better, the .capx of your project.