A totally unrecognizable James Franco filmed scenes for Spring Breakers in Miami earlier this week -- looking an awful lot like Britney Spears' ex-husband Kevin Federline circa 2006.

Playing a gun-toting drug dealer, Franco, 33, rocked cornrows, goatee, sunglasses and wore a wife beater tank top beneath a Hawaiian shirt. Joining the Oscar nominee for the fun was Selena Gomez, who posed seductively next to her costar in a sports car; posting the suggestive pic to Twitter, Gomez, 19, wrote, "This is where the trouble begins…"

PHOTOS: Bad male manes

Vanessa Hudgens also stars in Spring Breakers, about college girls who get into a whole lot of trouble -- hence the drug dealer - trying to fund a spring break trip. The film is directed by controversial Kids screenwriter Harmony Korine.

PHOTOS: K-Fed's weight ups and downs

Former rapper Federline, 34, sported the over-the-top cornrows look in 2006, while he was still married to Spears, 31. He and the pop singer share sons Sean, 6, and Jayden, 5, and divorced in 2007.

Get more Us! Follow us on Twitter, Friend us on Facebook, Subscribe to Us Weekly