A 20-year-old woman who falsely accused a Sydney father of indecently assaulting her after he stopped to fix her car had told lies because she didn't want to get into trouble, a court has heard.

Caitlyn Gray pulled into a Sydney BP in November last year after she smashed her car.

Bankstown man Kenan Basic offered to help with the damage, spending almost two hours working to get the car back on the road.

Security vision shows him attending to her vehicle.

Gray then told police Basic had allegedly propositioned her for sex in return for his help before he pursued her in the car and later indecently assaulted her at a different location.

At the time, police described Basic's alleged behaviour as "predatory".

Kennan Basic captured on CCTV helping to fix a woman's car. Credit: 7NEWS

He was charged with numerous offences including indecent assault and put behind bars after being refused bail.

But Basic always claimed he was innocent and on May 6 the charges against him were thrown out in court after Gray admitted to making it all up.

RELATED: Good Samaritan vindicated after indecent assault charges thrown out in court

Gray was charged with contempt of court, fabricating evidence and lying to police.

Guilty plea

In court on Wednesday, she entered a plea of guilty.

Gray had told investigators she "lied because I didn't want to get into trouble", the court heard.

"I would have eventually come clean," Gray told police.

The court was told the lies Gray told police are of the high end of the serious nature.

Basic spent two weeks behind bars, lost his job and marriage as a result of the false allegations.

He'll be back in court next month, where he'll fight for police to pay his legal bills.