You are allowed to smoke whenever you want regardless of who is in the car

You can’t smoke at all whilst driving

You are not allowed to smoke if you have a passenger