A Brooklyn man overdosed on drugs while driving a Lexus with his 7-year-old child inside — forcing the kid to take the wheel and collide with an ambulance, cops said.

Eric Roman, 37, was driving near Coney Island Hospital Thursday when he suffered an apparent heroin overdose and lost consciousness, according to police.

Roman’s young child then hopped onto his lap in a desperate attempt to steer the vehicle to safety.

An EMT worker was inside an ambulance when he spotted the 7-year-old in the driver’s seat with the father conked out.

The Lexus then struck the ambulance. An emergency service worker administered the drug Naloxone to revive Roman.

The man was taken to Coney Island Hospital and later charged with reckless endangerment, and acting in a manner injurious to a child.

The 7-year-old was not injured in the incident.