*The fourth time’s a charm for N.W.A. …And a successful biopic doesn’t hurt.

The groundbreaking Los Angeles rap group has been chosen for induction into the Rock and Roll Hall of Fame in 2016, joining fellow inductees Chicago, Cheap Trick, Deep Purple and Steve Miller.

Led by Dr. Dre and Ice Cube, N.W.A. was elected after three unsuccessful nominations in a year when a movie about their career, “Straight Outta Compton,” was a box office hit. Their hard-core tales of life on the street on songs like “F— the Police” made them a provocative chart presence in the late 1980s and influenced an empire of other acts.

The induction ceremony for the Cleveland-based hall will be held April 8 in Brooklyn’s Barclays Center. HBO will televise highlights later in the spring.

More than 800 voters of the Rock and Roll Hall of Fame Foundation selected the inductees.

Meanwhile, the band Chic has failed to win induction for the 10th time. Janet Jackson, The Cars, Los Lobos and Yes were among the other nominees rejected.