I have used those rubber latches on a cab I built for one of my tractors. Over time the rubber deteriorated and broke, so be aware of that. You may need to replace them after a few years. I also used on that same project a pair of spring loaded metal latches, same idea as the rubber, but metal and chrome. They were from a 70's International truck
fiberglass hood. Latches similar in size to the rubber ones are available in steel, possibly for vintage Jeeps