Yeah they had a prototype of a hydrogen car that gave out water vapor as exhaust. Some use fuel cells:
https://www.caranddriver.com/features/a41103863/hydrogen-car...
You can fill your tank with water and the hydrogen engine will separate hydrogen from oxygen and burn the hydrogen.