If you want the hazard light to work all you need is two 12 volt relays.

The 12 volt relays are switched on by the module and supply 24 volt to your hazard lights.