enable / disable particle system

hello, im stuck when trying to make my particle system turn off when the thrust button is no longer being help… but then of course turn back on when I press thrust again…

Ive looked at other answers on similar problems but none of them seem to work, for the record its going into my “player” script, and the particle system is just parented to the aircraft exhausts.

If someone can help me out this would be great, thanks.

p.s I code in JS not C or boo

Have you tried in code to find your partile system and them get the emitter and turn it off and on again. So for instance: