An NYPD detective seen on camera rolling dice in uniform with several people in the Bronx has been stripped of his badge and gun, the I-Team has learned.

The NYPD said David Terrell of the 42nd Precinct is off active patrol and on modified assignment in the Manhattan court system, but didn't comment specifically on the dice incident or the specific reason he was placed on modified duty. Terrell's modified assignment also comes as several young men in the Bronx told the I-Team he and other officers in the 42nd precinct falsified arrests and coerced witnesses to lie in criminal cases.

Kenny Shenery, 25, told the I-Team that the dice game -- video of which was obtained by the I-Team -- wasn't a friendly act of community relations.

Shenery said he and his friends were rolling dice on a street in the Bronx's Claremont neighborhood when Terrell and his partner approached and frisked them.

Shenery said he was then placed in the back of a patrol car and claimed Terrell told the group, "Let’s gamble. If I win, I take one of you guys in, also with him, and if I lose, I let him go."

A witness who took cellphone video said the officer lost, but took Shenery to the precinct anyway.

Shenery said he was given a summons for loud music which was not being played.

The Bronx DA’s office said it is aware of the accusations against Terrell and is investigating.

Last week, the I-Team reported that the DA’s office had dismissed murder cases against two men in the 42nd precinct who had been held in jail for nearly three years awaiting trial.

The NYPD’s Internal Affairs Bureau has been conducting an investigation into complaints against officers in the 42nd Precinct. Multiple teenagers told the I-Team they were pressured to lie in criminal cases and threatened with beatings.

Private Investigator Manuel Gomez has been hired by several families in the Bronx. A 19-year-old man arrested earlier this year also sued the department alleging he was choked in a patrol car until he passed out.