“The People v. O.J. Simpson” star Cuba Gooding Jr. channeled Simpson’s earlier party days by boozing with and cozying up to women in Miami.

“He was running around telling people how he and his wife are separated [and] how she was his high-school sweetheart. He was a mess,” said a spy.

Gooding started the weekend Thursday dining with pal Jerry Bruckheimer at David Grutman’s new restaurant, Komodo. We’re told he went into the kitchen and learned how to chop duck and prepared it for the tables.

Things later got more bizarre. On Friday night, Gooding hit club Story, where, we’re told, “He hopped on stage shirtless during DJ Kaskade’s set and started spraying the crowd with a CO2 cannon. He was dancing up a storm. He ripped off his shirt and hopped on top of the DJ booth and went crazy. He was having a good time.”

Gooding next went to LIV and was “beyond frisky with girls,” said a source, who added, “He was handing his room key to girls and telling them to meet him upstairs. He was texting girls he met earlier at the bar at 5 a.m.”

Gooding was seen on Instagram grinding shirtless on a woman before he appears to accidentally drop her, and was also spotted shoving another club-goer’s phone in his mouth.

Despite riding high on the success of the FX Simpson show, “He refused to talk about it. People were saying how much they loved it, and he wouldn’t talk about it.”

Cuba Gooding Jr. (center) hangs at LIV in Miami.Seth Browarnik/startraksphoto.com