Opioid settlement. Specifies that the distribution of funds from an opioid litigation settlement is subject to a bankruptcy court order or bankruptcy settlement. Provides that an annual distribution of less than $5,000 payable to a city or town pursuant to an opioid litigation settlement agreement must be paid instead to the county. (Under current law, the threshold is $1,000.) Specifies that amounts owed by the state for attorney's fees and costs incurred in connection with opioid litigation must be deducted from the opioid settlement distribution payable to the state. Permits a city, county, or town that receives an opioid litigation settlement payment to transfer all or part of the payment to another city, county, or town to be used for the benefit of both communities. Permits a city, county, or town that receives an opioid litigation distribution to sell the right to receive the distribution. Excludes from the agency settlement fund any amount owed for outside counsel attorney's fees, costs, or expenses.