He had no shame.

A disgraced former state trooper who faked his own shooting to get sympathy from his ex-girlfriend was so desperate to get her attention he asked to be taken to the hospital where she worked as a nurse, sources said.

Nassau County prosecutors said Thomas Mascia was determined to impress the woman after she dumped him last year, so he staged the Oct. 30, 2024, incident — claiming a black man in a black Dodge Charger shot him in the leg during a traffic stop on the Southern State parkway and sped off.

Prosecutors said former state trooper Thomas Mascia was so desperate to get his ex back that he faked his shooting. Dennis A. Clark

When first responders got to the scene, Mascia asked to be taken to the Long Island hospital where he knew she would be on duty, law enforcement sources told The Post.

In fact, the whole thing was a sick ruse to get her back –– but it backfired when authorities got wise to the scam, which cost him his job, his love interest, and his freedom.

The scheming former trooper was hit with a six-month sentence Wednesday after pleading guilty to charges of official misconduct and tampering with evidence — and an order of protection for his ex.

Disgraced state trooper Thomas Mascia was sentenced to six months behind bars on Wednesday for misconduct. Dennis A. Clark

Thomas Mascia got a hero’s welcome when he left the hospital before investigators learned he faked his shooting. Brigitte Stelzer

“Everyone started out rooting for you,” Nassau County Judge Robert Bogle berated Mascia at his sentencing. “But you led us on fraud and dangerous, outrageous behavior. I hope during your incarceration you will reflect on your misdeeds and abuse of official authority.

“You violated the trust of the state of New York,” the judge added.

Nassau County DA Anne Donnelly said the ex-cop did research online to determine the safest place in the body to be shot, and even read up on what it felt like to be a gunshot victim.

On the night of the incident, Mascia even spilled shell casings onto the parkway to make it look real, and sold the lie enough that he got a traditional police “walkout” when he left the hospital on Nov. 1.

Thomas Masia resigned from the state police in disgrace on Jan. 24, then was charged with misconduct. Dennis A. Clark

The fake shooting sent hundreds of New York metro area law enforcement officers on a manhunt for the fictitious gunman who shot a fellow officer — until the fraud was exposed.

Mascia resigned in disgrace on Jan. 24, and was later charged, leading to his plea deal in May and his sentencing on Wednesday, which included an order to pay $289,511 in restitution.

His lawyer, Jeffrey Lichtman, blamed the staged shooting on “many years of mental health issues that were never treated.

“Tom is getting mental health treatment and is sorry for all the pain he’s caused,” he said Thursday.

Meanwhile, his former love interest, who is not being identified, could not be reached for comment.