You need 540i transmission. If you find a parting 540i, grab all the stuff from it. Pedal assembly, slave-cylinder, master-cylinder all of it. If you have in iL you'll need a custom driveshaft, otherwise its said that 740i and 540i driveshafts are same. In the end you'll need someone to program your car so your FAIL-SAFE and SERVICE ENGINE SOON lights go away.
** Removed **