First of all you need a survival kit, that is a Bentley Repair Manual for the E34.
And this
http://www.bmwe34.net/E34main.htm
"hazard lights will not go off."
there is a relay for the hazard lights, but also the hazard light switch can be dirty=no contact and the crash alarm relay can be defective.
Doorlocks are controlled finally by the GM=general module.
But I suggest you first buy the Bentley Manual, search here on the board (see on top search function) and then come with specific questions.
If it becomes more difficult, forum members will help you definitely.
But first of all study the basics.