Miami Heat star Dwyane Wade and his former wife, Siohvaughn Funches, have finally reached a financial settlement, six years after the duo began a very public battle over monetary support.

Wade will now have to pay Funches $5 million, a judge said on Monday, and the settlement will include a non-disparagement agreement, which requires both parties to refrain from making derogatory remarks about each other in public, the Chicago Sun-Times reported.

It is not yet clear what would constitute a disparaging remark, but Wade’s attorney, James Pritikin, said a violation of the agreement would be a finable offense, and added that Wade’s family members and his girlfriend, actress Gabrielle Union, would be protected under the agreement.

Funches grabbed headlines last week when she was pictured outside a Chicago courthouse protesting with a sign that read “NBA Miami Heat Star Mother Of His Children On The Streets,” implying that she was homeless because Wade was not supporting her financially.

But, Wade claims he pays her $25,000 a month, in addition to paying her mortgage, insurance, taxes and fees of her attorneys she employed during the divorce and custody fights, Pritikin said in a statement, cited by the Chicago Sun-Times.

“Mr. Wade has provided a very generous settlement to Ms. Funches to continue to live a wonderful lifestyle for the rest of her life,” the statement read. “Ms. Funches has made a mockery of homelessness which is a serious and personal issue for Mr. Wade as his mother was homeless for a period of time when he was a child.”

Wade and Funches were high school sweethearts who got married in 2002. But they got divorced five years later in 2007, and Wade was granted sole custody of their two children -- Zaire and Zion -- in 2011.