The Brooklyn District Attorney’s Office has been sitting on documents that showed that a woman who allegedly was the victim of years of sexual abuse had changed her story and admitted that the relationship was consensual, the defendant’s lawyer claimed yesterday.

Damien Crooks was charged last June with multiple counts of rape and sex trafficking, for allegedly forcing the accuser into prostitution after first attacking her in 2003, when she was just 13.

Darrell Dula, Jamali Brockett and Brockett’s brother Jawara were all also charged with rape.

But when the accuser went to cops in March 2010 to say Crooks raped her, she gave a different account almost instantly, the lawyer claimed.

“She indicated the night of the alleged rape that she had made up the story,” Crooks’ lawyer, Elliot Kay, told The Post. “She indicated that she was in a consensual relationship, as opposed to being the victim of sex trafficking.”

Kay said he recently learned of her statements when the DA’s office turned over documents related to the case.

“How do they go on TV talking about this huge sex-trafficking bust when they had written documentation from police officers in which she admitted lying,” Kay asked.

The DA’s office did not immediately respond to requests for comment.