"Maze Runner" star Dylan O'Brien was injured on the set of the latest movie in the dystopian YA franchise, and production on the film has been shut down while he recovers, according to a statement from 20th Century Fox on Friday.

O'Brien, 24, was taken to a hospital in Vancouver for treatment, the studio said.

RELATED: Superman Henry Cavill goes to Times Square in costume, no one recognizes him

Variety magazine and gossip website TMZ said O'Brien was hit by a car and suffered multiple injuries on the Vancouver set of the upcoming "Maze Runner: The Death Cure."

Fox declined to comment on the severity of O'Brien's injuries or how they occurred.

"Production on the film will be shut down while he recovers. Our thoughts go out to Dylan for a full and speedy recovery," Fox said in its statement.

TMZ said O'Brien, who plays Thomas in the franchise, suffered multiple broken bones in the accident.

RELATED: Michael Shannon thinks realistic films are boring

"Maze Runner: The Death Cure" is scheduled for release in February 2017 and is the third film in the successful movie franchise set based of James Dashner's young adult novels. The story was inspired by William Golding's influential 1954 novel "Lord of the Flies" about a group of young boys left to fend for themselves on an uninhabited island.

The first two movies, released in 2014 and 2015, made about $660 million at the global box office and established O'Brien as one of the hottest young movie stars.

O'Brien first found fame on YouTube some 10 years ago through posting his original videos, and went on to star in the MTV series "Teen Wolf."