A way to have specific slots for each weapon type?

What I'm trying to do is the following: There are two slots for weapons (slot 1 and 2). In the first slot only swords can be equipped. In the second only guns. There can't be an actor with two guns or swords at the same time. And it always has to be like this: a sword in the first slot and a gun in the second slot. How can I accomplish this? I know that a way is to make the guns a type of armor so I can select the specific slot. The problem is that I want guns to fall in the weapons category so they appear in the weapons' tab in Yanfly's synthesis plugin. Can you help me with this? Thanks a lot for reading!
Thanks a lot, friend. You helped me a lot. Have a nice day!
Thanks a lot, friend. You helped me a lot. Have a nice day!
Np! Good luck!

Original thread: https://forums.rpgmakerweb.com/threads/a-way-to-have-specific-slots-for-each-weapon-type.162246/