New York state is set to receive its maximum $230 million under a multi-state settlement with companies found to have played key roles in the sale and distribution of opioids in the U.S., Attorney General Letitia James announced Thursday.

The money is coming after local governments in the state joined during a subdivision sign-on period. The state secured full participation during this time, which will lead to the maximum amount awarded as part of the settlement, James said.

“Every region across New York has been impacted by the opioid crisis and every community has been devastated in its wake,” James said. “We went after these manufacturers and distributors because they must pay for their roles in this crisis and for the lives they have forever harmed. While no amount of money will ever bring back the New Yorkers we’ve tragically lost to opioids, with full participation from all of New York’s political subdivisions, we are doing all we can to get the most money possible for our state to put into treatment and prevention efforts.”

The $26 billion agreement with distributors Cardinal, McKesson and AmerisourceBergen, as well as Johnson & Johnson, stems from the companies' role in the distribution of opioids, which has been blamed on a nationwide addiction epidemic.

The settlement reached in July included 52 states and territories -- potentially benefiting thousands of local governments across the country with money that can be put to addiction treatment efforts.