Sustain pedal in FL studio as Vsti

Hi:)

I can’t make my sustain pedal work in C4 when I use FL Studio as a vsti instrument.
It really works well on a native mode when I use FL directly.

Has someone an idea ?
Thanx a lot