The MP40 is unlocked at level 10 in online multiplayer. Keep playing matches to earn the experience needed to reach that rank and add it to your loadout.