If you want the weapon to be the same regardless of the infantry unit inside, then you would probably be better off using ArmedRidersUpgradeMyWeaponSet = Yes on an otherwise standard TransportContain module and adding the desired weapon to an upgraded WeaponSet. The only problem with this is if you want to use an upgraded WeaponSet for something else.