NBA star Blake Griffin has been ordered to pay $258,000 per month in child support, according to a new report.

RadarOnline cited court documents stating the 29-year-old basketball player will pay out more than $3 million a year in child support to his ex-girlfriend Brynn Cameron, the mother of his two children. They have a 5-year-old son named Ford Wilson and a 2-year-old daughter named Finley Elaine.

People magazine reports the former couple settled a custody battle hours before they were scheduled to appear in court this week. TMZ says Griffin and Cameron agreed to joint custody.

Griffin, who was traded to the Detroit Pistons from the Los Angeles Clippers earlier this year, is currently on a 5-year contract worth more than $171 million. The Detroit News reports he’s expected to earn nearly $32 million for the 2018-19 season, not including income from commercials, investments and other non-NBA work.

Cameron reportedly sued Griffin for palimony in February, stating in a lawsuit that Griffin had “had no problem” trading her, “his former fiancee and mother of his two children, for reality television star Kendall Jenner.” RadarOnline reports he’s now dating model Francesca Aiello.

RadarOnline reported Griffin’s annual income altogether is close to $35 million; the Los Angeles Superior Court used that figure to determine his child support obligations.