An off-duty NYPD cop shot and wounded a man in a wheelchair during a gunfight at a Brooklyn house party Sunday, police and relatives said.

Kwame Dottin, who has been wheelchair-bound since another shooting years ago, was arguing with the cop at the bash on East 43rd Street in East Flatbush at around 2:40 a.m. when he fired a shot at the officer from a revolver, according to police sources.

The round missed, and the officer then fired back four times, hitting Dottin once in the left hip, the sources said.

“I thought the guy from the wheelchair was dead,” said one neighbor who witnessed the aftermath.

That witness and another local, who both declined to be named, said that the cop identified himself to Dottin as a police officer during the fracas.

Dottin, 30, was rushed to Brookdale University Hospital Medical Center, where he’s in stable condition — and in police custody.

The off-duty officer, whose name was not released, was treated for tinnitus at NewYork-Presbyterian Brooklyn Methodist Hospital.

At Dottin’s Troy Avenue home, a man who identified himself as Dottin’s father said that his son had been confined to a wheelchair since he was shot at another party years prior in a fight over a woman. He didn’t provide any further details.

Police couldn’t confirm that Dottin had previously been the victim of a shooting, but sources said it wasn’t his first case of gunplay. In 2013, he was arrested for criminal possession of a disguised gun, according to police sources.

Additional reporting by C.J. Sullivan