The ENQUIRER reveals The Beast producers have a script written for when Patrick Swayze dies!

"It’s a wonder Patrick is still alive," a pal told The ENQUIRER. "In January he was given only weeks to live. But he’s fighting for all he’s worth and won’t give in to the pancreatic cancer."

"Miracle Dude" Swayze is now shooting the TV show in Chicago but those close to him fear the ailing thesp is digging his own grave as he’s resumed smoking!

"Patrick is an inspiration, but we’re terrified he’s killing himself," a production insider told The ENQUIRER.

According to the pal, producers are terrified Patrick’s condition will worsen while filming.

They’re betting Patrick will make it through the first season. Since his character – a veteran FBI agent – has a young partner, the producers are developing the character to take over as the lead, if necessary.

"The producers have already written an episode for when Patrick has to leave the show," said the pal.

"But no one knows when they’ll have to shoot that episode."

For the full story – pick up The  ENQUIRER – on sale now!