The smoke comes out wherever the muffler is, so either string a bunch of light frames and/or wires (if you’re using the vehicle additions pack) to somewhere far off, put the muffler there, bam, problem solved.
Or, in theory, I think you could surround the muffler in all eight directions with boards, and it would contain the smoke. I haven’t tried this one, though…