Whoopi Goldberg bagged a role in a movie after stomping out of her house to complain about noisy activity on her street, according to director Mario Van Peebles.

“I did not cast Whoopi. Whoopi cast herself,” Van Peebles told Page Six of his new Western, “Outlaw Posse,” “I was directing a show on the [Hulu drama] ‘Wu-Tang: An American Saga” in New Jersey, and this neighbor came over all irate yelling, ‘Who is making all that racket,’ and it was Whoopi.”

“When she realized I was directing, I asked her what do you want do next,” Van Peebles said, “and she said, ‘I want do a Western’ and I said ‘I’m getting ready to do a Western.’ Then she said, ‘Do you know who Stagecoach Mary is?,’ and I said ‘Yes.’”

Whoopi Goldberg and Mario Van Peebles on set in "Outlaw Posse."
Whoopi Goldberg plays Stage Coach Mary in “Outlaw Posse.”Courtesy Everett Collection

Charlamagne Tha God, Marion Van Peebles and Mandela Pebbles talking.
Charlamagne Tha God hosted a Q&A with Mario Van Peebles and his son Mandela after the screening.Getty Images
Goldberg plays Stagecoach Mary, a mail carrier who became the first Black woman to be employed as a major route postwoman in the United States, in the flick.
Whoopi Goldberg on set filming "Outlaw Posse."

Peebles says the EGOT actress cast herself in the independent film.Courtesy Everett Collection

“She did not do it for free,” he told us, “I still had to pay her and I would not want her to do it for free, but she did it for the right reasons.”

He added, “I have my own rule when it comes to casting for a movie: No matter who or what the person is… if we were all at camp and we were twelve years old, would I wanna play with you? If the answer is yes — ‘She will be fun to play with! — then, yes, you are in the movie.”

Charlamagne Tha God, Whoopi Goldberg and Mario Van Peebles posing.
“The View” co-host wanted her next role to be in a western film.Getty Images
A private screening was held at Regal Union Square Theatre on Thursday where Charlamagne Tha God hosted a Q&A after the film with Peebles. Whoopi Goldberg, French Montana, and Joey Bada$$ were all in attendance.

Neal McDonough, Edward James Olmos, Cedric The Entertainer, Cam Gigandet, DC Young Fly and John Carroll Lynch all star in the film. “Outlaw Posse” is currently in theaters.