How to apply weapon to certain class?

I want to make it so that weapons can only be used by certain classes does anyone know how to do this?
Do you mean a weapon type, or a specific weapon?

If you mean a general weapon type, you should be able to make it so that only certain classes are able to equip that weapon type in the (class) traits list.

If you mean a single weapon in particular, you can give the weapon a unique weapon type that only certain classes can wield and that otherwise functions identically to the broader weapon type it would otherwise apply to.
@Frostblade
What you want is done by giving the class the correct equipment traits.

Please take two weeks or so to work through the basic tutorials - most of your questions so far are handled there, and we simply can't make your game for you by answering every basic questions, your game will be completed a lot faster if you take the time to learn how the program is used.
The link to the starting point in my signature will guide you through the most important tutorials.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-apply-weapon-to-certain-class.79183/