The city plans to invest $38 million a year to reduce opioid overdose deaths by 35 percent over the next five years — including equipping all patrol cops with an antidote, officials said Monday.

The plan, the second announced by Mayor de Blasio since December 2015, will boost the availability of the overdose-reversing drug Naloxone and provide treatment with medications to an additional 20,000 people.

All 23,000 cops on patrol will be equipped with the antidote, 10,000 more than currently have it.

Dubbed HealingNYC, the plan also calls for expanding NYPD intervention in the illicit drug trade, with a focus on heroin and the much more powerful synthetic opioid fentanyl.

NYPD officials said they’re reassigning 84 investigators to that end — 64 to borough narcotics squads and 20 to criminal enterprise.

“Our priority here is to stop preventable deaths, to keep people alive and to connect them to care,” Health Commissioner Dr. Mary Bassett said during a press conference at Lincoln Hospital in The Bronx.

In December 2015, de Blasio announced a similar but smaller plan to address the crisis. On Monday, he said the increased prevalence of fentanyl and the growing death rate prompted the expanded approach.

In 2016, there were 1,075 opioid-related overdose deaths in the city, and fentanyl was involved in a growing number of them, city records show.

The synthetic drug went from being involved in fewer than 5 percent of overdose deaths prior to 2015 to being the culprit in half the city’s overdose deaths in the last six months of 2016. There were 753 opioid-related overdose deaths in 2015.

“A lot of the pieces were in place and moving but the last year has been very sobering,” the mayor said. “You see that difference between the 2015 fatalities and 2016 — it’s shocking. It was a wake-up call to us that we had to deploy a whole new range of tools to address this.”

Hizzoner heaped blame on the pharmaceutical industry for getting Americans hooked on prescription painkillers in recent years.