Kevin Smith tweeted fans early Monday that he had suffered a “massive heart attack” after shooting a comedy special in the Los Angeles area.

“If I hadn’t canceled show 2 to go to the hospital, I would’ve died tonight,” Smith tweeted from the hospital. “But for now, I’m still above ground!”

Smith, the 47-year-old filmmaker, writer and star of the AMC reality series “Comic Book Men”, was reportedly shooting “Kevin Smith Live!”, his new standup special, in Glendale, California.

Smith had posted on Facebook hours earlier about his show taping.

Smith, who shoots “Comic Book Men” in his native Red Bank, N.J., recently appeared in the 2017 film “Disaster Artist,” and had directed recent episodes of CW’s “The Flash” and “Supergirl.” His feature directing career spans from his breakthrough 1994 hit “Clerks” to 2016’s “Yoga Hosers,” and includes “Mallrats,” “Chasing Amy” and “Dogma.”

Smith’s screenplay for his 1997 film “Chasing Amy,” starring Ben Affleck and Jason Lee as comic-book creators, received a Spirit Award. Smith himself has written comics for such characters as Daredevil, Green Hornet and Batman, and he famously financed his indie Sundance hit “Clerks” partly by selling his cherished comics collection.

As a performer, Smith debuted his Silent Bob character in “Clerks” as a mute comic foil to fellow slacker Jay, played by Jason Mewes. In 2013, Smith staged a reunion tour with Mewes, anchored by their podcast and a new “Jay and Silent Bob Super Groovy Cartoon Movie.”

Smith told The Washington Post’s Comic Riffs in 2013 that the film was “a benchmark of his sobriety” in referring to his longtime friend Mewes, who had battled addictions to heroin and OxyContin.

In 2010, Smith made headlines in the Bay Area when Southwest Airlines refused him a seat on an Oakland-to-Burbank flight because he was too big. “You have messed with the wrong sedentary, processed-foods eater,” he snapped on Twitter during a public war of words that included Southwest’s blog post titled “Not So Silent Bob.”

Fans and fellow celebrities, including Chris Pratt, tweeted their concern and wishes to Smith early Monday:

“Praying for you. I will continue to. You inspired me with Clerks when I was a senior HS. I’m tagging my Lb/rb football coach who showed me the movie cause he believed in me and knew I’d be inspired,” Pratt wrote on Twitter.