Smoking in a truck

I’m a non smoker. Hasn’t smoking been named in cars work place vehicles etc? I could be wrong.
Ages ago took somone with me 2 man job for day he said you mind if smoke e cig. Said no problem. God the thing stank of vanilla and the smell god. Not sure there safer than the real thing as it stinked