The New Orleans rap star Juvenile got out of the city's jail Monday — only to be transferred to the St. Charles Parish jail on a warrant in an unrelated case there. 

He had been behind bars in New Orleans since Saturday for failure to pay child support on time.

Lawyers on both sides of that case said Monday that a deal had been worked out in which the popular rapper, whose real name is Terius Gray, would pay off that $150,000 debt in installments. 

He paid $10,000 Monday to secure his release from custody in New Orleans. He owes another $20,000 by July 5 and is due to come up with the rest after a tour scheduled to start in September, according to both Gray's attorney, Jason Cantrell, and the plaintiff's lawyer, Doug Howard. 

However, St. Charles Parish Sheriff's Office deputies immediately picked up Gray on a warrant pertaining to an unrelated child-support case there. The warrant dates back to 2011 and accuses Gray of failing to appear in court as a defendant in a paternity and child-support lawsuit filed against him about 16 years ago. 

St. Charles Parish Sheriff Greg Champagne said his deputies took Gray into custody at the New Orleans jail about 4:45 p.m. Monday. The St. Charles judge who signed the warrant set Gray's bail at $2,000. 

Gray, 42, was brought to New Orleans' jail on the orders of Civil District Court Judge Nakisha Ervin-Knott after performing at a concert venue in Jefferson Parish on Friday night. 

The judge ruled in May that Gray must pay his child support debt to Dionne Williams or spend 30 days in jail. 

Judges in Louisiana typically stop short of jailing people who fail to pay child support, realizing that defendants can't easily gather the money they owe while behind bars. But they sometimes take that step with defendants who appear to have the means to pay what they owe.

Howard and Cantrell said the agreement to allow Gray to pay his debt in installments is an acknowledgement that the entertainer must continue working to come up with the money he owes. 

That agreement was announced during a hearing Monday that Gray attended wearing shackles and an inmate's jumpsuit. Judge Rachael Johnson, who recently took over the New Orleans Civil District Court's family docket, presided. 

Court rulings in 2012 and 2013 found that Gray was about $170,000 behind in his payments to Williams. He has since paid $20,000 of that sum, records show.

A claim that Gray owes an additional $71,000 in child support since 2013 hasn't been ruled on.

Gray and Williams' son is 18; he is entitled to child support until he is 19, Howard said. 

Cantrell said Gray has a relationship with his son, recently paying outside of official channels to buy him a car and send him to his prom. 

Gray fell behind on payments to Williams because his income isn't the same as when he was at the peak of his career, Cantrell said. "He's not a bad guy by any means," Cantrell said. "He's very much in this child's life." 

The St. Charles lawsuit was filed in 2001 on behalf of a California woman named Shannon Horn who said she had given birth to a child by Gray a year earlier. The suit remains pending. 

Gray helped the Cash Money Records label gain national fame with the multiplatinum 1998 album "400 Degreez," which included the New Orleans bounce anthem "Back That Azz Up." He also had a No. 1 single with 2004's "Slow Motion." 

Gray has not enjoyed the same commercial success he had when those two songs were staples on the radio. But he still draws crowds when he performs, and his jailing this weekend caused him to miss a concert alongside fellow New Orleans rapper Mystikal on Saturday night in Houston. 

Follow Ramon Antonio Vargas on Twitter, @RVargasAdvocate.

(504) 636-7433