How can i change my Crouching mode from toggle to hold with a settings menu

I have made a Toggle and hold func but i need to switch them with a setting menu

Were you can switch it(in a widget in a other level)

If anyone have any suggestion let me know

Thanks in advance