I saw a movie years ago titled “The Dukes of Hazard”.
It basically had the same characters as the TV show but it was not a comedy. Maybe there was no Boss Hogg, not really sure but there was a Sheriff Roscoe P. Coltrane.
I am pretty sure it was set in Hazzard, KY, while the TV show eventually became Hazzard, GA.