NWA biopic cast

*Talk about keeping it real!

Production of the NWA film, “Straight Outta Compton” was going down in the city the other day when a drive-by shooting right in front of the movie crew.

It was last week when gunfire happened outside the Compton Courthouse because some dudes from the neighborhood, not actors, flashed gang signs at a passing car, reports TMZ:

We’re told the gunmen were NOT targeting the crew — but since they were setting up outside the courthouse the bullets came dangerously close. One nearby civilian was hit, and collapsed next to the set … but survived.

The L.A. County Sheriff’s Dept. tells us the shooting is under investigation. They have not yet determined if it was gang-related.

Meanwhile, filming will continue this week  even though many members of the cast and crew are said to be freaked out and worried about their safety.