The Flintstones in Viva Rock Vegas (also known as The Flintstones 2 or The Flintstones 2: Viva Rock Vegas) is a 2000 American comedy film and prequel to 1994's The Flintstones, based on the cartoon television series of the same name. Produced by Amblin Entertainment and Hanna-Barbera Productions and distributed by Universal Pictures, it is set before the events of the first film and features very few of the original cast. Ann-Margret, who guest-starred as "Ann-Margrock" in the season four episode "Ann-Margrock Presents" from the animated series, sings the theme song, which is a slightly rewritten version of the song from Viva Las Vegas. Wikipedia
Barney Rubble: (defending Fred to everyone after he's been accused of robbert) Wait a minute, wait a minute, wait a minute. Fred couldn't have taken Wilma's necklace. It was locked up in a safe. Fred can't even remember the combination to his bowling locker. It's written right here on his hand, see? (lifts Fred's hand up in the air where the combination is written) Fred Flintstone: (jerks away) Great, Barn. Now everyone's seen it. Barney Rubble: Crack open a safe? He couldn't crack his own knuckles without my help. (laughs) Chip Rockefeller: Thank you, Mr. Rubble, for admitting to being Mr. Flintstone's accomplice. Barney Rubble: You're welcome! (pauses and realizes) Barney Rubble: What? Chip Rockefeller: Take them both to jail!