Weapon selection system for a craft Using primary and secondary fire buttons.

Im trying to create a weapon selection system for my Vehicle.
I want to have a Primary fire and secondary fire weapons slot.
and I want these to update on the HUD as i switch the slots weapon type for each slot.

What is the most elegant method for this type of setup.