LOS ANGELES — The woman who’s accused Knicks star Derrick Rose and his pals of drugging and raping her in 2013 came ready to party that day – looking to score booze and drugs and offering men pool-side lap dances, according to testimony Wednesday.

Rose’s childhood pal Randall Hampton returned to the witness stand in Los Angeles federal court, where he told jurors the accuser arrived at the NBA star’s Beverly Hills mansion on Aug. 26, 2013 asking for the drug ecstasy and Don Julio tequila.

“The first thing I can remember anyone saying when they walked in was [she] asked for ecstasy,” he testified.

Hampton said he and his friends told her they didn’t have any drugs — but that things wound up getting raunchy.

“I remember [her] pouring everyone shots. At some point after the shots I don’t remember if it was me or [friend Ryan Allen] who got a lap dance from [her] first,” he said.

Hampton, 28, said the 30-year-old woman dove into the pool and pulled him in with her for what he described as a “romantic” moment.

When they got out of the water, the woman, who used to date Rose, “got in between my legs … I thought she was about to perform oral sex on me,” before someone interrupted them, Hampton said.

He then described in graphic detail having sex with her on a cabana bed and that when Rose appeared, she let him join in.

“I just know she began to give him oral sex, like she didn’t hesitate at all,” said Hampton, who is Rose’s personal assistant.

The woman is suing Rose, Hampton and Allen for $21.5 million, claiming they drugged and gang raped her hours later at her Los Angeles home.

‘I remember [her] pouring everyone shots. At some point after the shots I don’t remember if it was me or [friend Ryan Allen] who got a lap dance from [her] first.’

- Randall Hampton, friend of Derrick Rose

The men have claimed the sex was consensual — and that they never gave her any drugs.

Hampton testified that after leaving Rose’s house at midnight, the woman called Allen to let him know “that it was OK for all three of us to come [to her apartment] if Derrick came.”

Earlier Wednesday, Judge Michael Fitzgerald refused to declare a mistrial or dismiss the case over newly discovered text messages the accuser sent Rose but never turned over to defense lawyers ahead of trial.

“These texts could be viewed by the jury as being helpful to the defense. They are at a minimum consistent with the defense’s theory of this action,” the judge said.

Rose’s lawyer will be allowed to recall the accuser to the witness stand to grill her about the deleted texts.

Rose’s attorney Mark Baute argued that one exchange was the “most probative text in the entire case” because it proves that the woman was “upset about being dumped by texts so she mapped out a false rape charge because she wants and needs money.”

The woman wrote to Rose at 1:36 a.m. — before the alleged assault: “She was mad at me babe,” referring to a massage therapist friend that she’d brought to Rose’s house, at his insistence, the night before. “Why you have me bring a bitch and you ain’t finna [sic] f— her.”

The accuser’s lawyer Brandon Anand insisted that he handed over the texts to defense.