Yes, there were video surveillance cameras in the 1980s, hooked into VCRs for playback. And many places used them, including stores and gas stations. That's how gas stations could track down people who filled up and ran. Toll booths had them too.
Even before VCRs were cheap enough, there were film-based surveillance cameras. https://archive.org/details/armedrobberyoffe0000macd/page/22... from 1975 gives examples, including at a donut store.
(And it mentions a bank where they pressed the button to film a robbery, then after developing the film found it had taken pictures of the Christmas party months before, when the button was pressed by accident.)
I mean, we had webcams by the mid 1990s. It's not like Exxon couldn't afford something better for their stations.
I mean, after the Oklahoma City bombing in 1995 I remember seeing many video clips of the vehicle making its way to the building. Checking now, https://libertarianinstitute.org/articles/the-oklahoma-city-... says "A 1999 Freedom of Information Act lawsuit filed by investigative journalist David Hoffman revealed that the FBI had twenty-two video surveillance recordings of the Murrah building and surrounding area stored at the FBI’s Oklahoma City field office." Its Wikipedia entry links to https://web.archive.org/web/20170510090822/http://newsok.com... saying "Agents also examined more than 900 security videotapes".
If most cameras 'very frequently didn't work' then that means there were huge amounts of non-working cameras in the area. Which seems like an expensive waste of money.
I can well believe that some cameras didn't work - I already mentioned the bank robbery where the cameras had run out film months previously.
In any case, the original claim "No cameras 20-30 years ago" is simply not true.
Still, this picture of a Citgo from 1998 shows four exterior cameras at a gas station, at each end of both islands. https://www.gettyimages.com/detail/news-photo/the-citgo-stat... .
I'm therefore not willing to accept "No cameras 20-30 years ago" as an unconditionally true statement.