[Release] [Standalone] VehControl NUI Menu

The key to close can be changed by editing the vehcontrol/html/vehui.html file

Find they keycode for the key you want to use, the current key is ESC with the keycode value of 27
You can get keycodes by visiting this site and tapping the button you want to use
Modify the keycode number on line 47 like below

      document.onkeyup = function(data){
        if (data.which == 27){
          $('.container').css('visibility', 'hidden')
              $.post('http://vehcontrol/NUIFocusOff', JSON.stringify({}));
          }
      }

File: https://github.com/Manvaril/vehcontrol/blob/master/html/vehui.html

1 Like