1. Trouble with the game?
    Try the troubleshooter!

    Dismiss Notice
  2. Issues with the game?
    Check the Known Issues list before reporting!

    Dismiss Notice
  3. Before reporting issues or bugs, please check the up-to-date Bug Reporting Thread for the current version.
    0.36 Bug Reporting thread
    Solutions and more information may already be available.

Is there a way to make certain Buttons Momentary instead of Toggle?

Discussion in 'Troubleshooting: Bugs, Questions and Support' started by Wonkas_Willie, Apr 18, 2025.

  1. Wonkas_Willie

    Wonkas_Willie
    Expand Collapse

    Joined:
    Apr 15, 2025
    Messages:
    5
    I installed a switch onto my shifter and want to use it to activate a Supercharger among other things. the only issue is that it activates when I pull the switch but to turn it off I have to turn the switch off and on again instead of it being pull =on, Push=off. I have this json File that I cant figure out. is there an easier way? any help would be appreciated

    "toggleESCMode" :{"cat":"vehicle", "order": 21.0, "ctx": "vlua", "onDown" :"if controller.getController('driveModes') then controller.getController('driveModes').nextDriveMode() else controller.getControllerSafe('esc').toggleESCMode() end", "title": "ui.inputActions.vehicle.toggleESCMode.title", "desc": "ui.inputActions.vehicle.toggleESCMode.description" },

    upload_2025-4-18_0-32-38.png
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice