Jennifer Lopez’s production company scored a big win this week after a lawsuit brought on by Samantha Barbash, who is the inspiration for Lopez’s 2019 “Hustlerscharacter, was thrown out of court.

On Tuesday, federal Judge Denise Cote in the U.S. District Court Southern District of New York dismissed the $40 million lawsuit filed by Barbash against the Lopez-owned Nuyorican Productions, STX Entertainment, Gloria Sanchez Productions and Pole Sisters LLC over claims the company “exploited” her likeness and her story without her permission.

"The defendants’ May 29, 2020, motion to dismiss is granted. The Clerk of Court shall enter judgment for the defendants and close the case," the documents read, according to Entertainment Weekly.

In a statement to Fox News, Barbash's attorney Bruno Gioffre said Barbash is "displeased" with the judgement and is looking into appealing the ruling.

'HUSTLERS' STAR JENNIFER LOPEZ GETS SLAMMED BY ALLEGED RINGLEADER SAMANTHA BARBASH: ‘JLO BETRAYED ME’

"Our client is obviously displeased with the Court’s decision to dismiss this case, especially due to the fact that the production company and JLo profited immensely from the use of Samantha’s life and story and Samantha received no compensation," said Gioffre. "We find great hypocrisy in the fact that JLo and the director of this movie have held themselves out as supporting women’s rights but had no regard for Samantha’s privacy rights as a woman and had no issues profiting from her story even due to her detriment. At this time, Samantha is currently examining all of her appellate options."

The 47-year-old Barbash filed her initial complaint in January and claimed the film defamed her in the process by “using and manufacturing illegal substances in her home where she lived with her child,” People magazine reported at the time.

This image released by STXfilms shows Jennifer Lopez, in a scene from 'Hustlers.' Lopez's production company scored a big win this week after a lawsuit brought on by Samantha Barbash, who is the inspiration for Lopez’s character, was thrown out of court.

This image released by STXfilms shows Jennifer Lopez, in a scene from 'Hustlers.' Lopez's production company scored a big win this week after a lawsuit brought on by Samantha Barbash, who is the inspiration for Lopez’s character, was thrown out of court. (Barbara Nitke/STXfilms via AP, File)

“Anyone who views the film will believe plaintiff to be an individual of little to no moral or ethical values, devoid of any loyalty to her colleagues, under the influence of hard drugs, and with misandrist tendencies,” the court papers stated.

Barbash further alleged that the movie's producers attempted to “obtain a consent and waiver from Ms. Barbash for the production of the film and their ultimate portrayal” of her, which Barbash claimed she refused to sign.

JENNIFER LOPEZ'S 'HUSTLERS' INSPIRATION SLAMS CLAIM STAR DID FILM FOR FREE: 'SHE GOT MONEY ALL AROUND'

“The film depicts Ms. Barbash, played by Jennifer Lopez ('JLO') as the ringleader of a group of adult dancers who drugged their patrons and stole exuberant amounts of money from them while in their incapacitated state,” according to the initial lawsuit.

Jennifer Lopez (right) and Constance Wu in 'Hustlers.'

Jennifer Lopez (right) and Constance Wu in 'Hustlers.' (STX Entertainment)

“Defendants did not take caution to protect the rights of Ms. Barbash by creating a fictionalized character, or by creating a composite of characters to render JLO’s character a new fictitious one; rather they engaged in a systematic effort to make it well-known that JLO was playing Ms. Barbash.”

CLICK HERE TO GET THE FOX NEWS APP

Barbash was seeking $20 million in compensatory damages and $20 million in punitive damages.

“Hustlers” opened with an impressive $33 million gate and to date has grossed just under $105 million in the U.S. and Canada alone.

CLICK HERE TO SIGN UP FOR OUR ENTERTAINMENT NEWSLETTER

Lopez, 51, was nominated for Golden Globe and Screen Actors Guild awards for her performance in the film, which also stars Lili Reinhart, Lizzo, Keke Palmer and Julia Stiles.