A Florida gangbanger has been put away for accidentally firing a gun while taking a selfie in a strip club bathroom, according to a report.

“It was an accident, man. I was just trying to take a selfie,” Rorn Sorn, 34, told a Club Lust security guard who heard a gunshot on Dec. 17, 2016, the Orlando Sentinel reported.

The bullet pierced the mirror and went through the wall into the ladies’ room. No injuries were reported.

Cops found a .40-caliber gun, marijuana and Xanax in Sorn’s pockets when they arrested him.

Sorn, who pleaded guilty in April to possessing a firearm as a convicted felon, was sentenced to six years and five months in prison Monday.

His rap sheet included convictions for burglary and attempted first-degree murder.