[Release] [Standalone] VehControl NUI Menu

What is the difference between this script and the other? looks like the same…

I am thinking same thing, just a little diference between on gui.

1 Like

How can I change close button?

Is there a way to change the default key to open the menu? I notice that its Scroll up on the mouse when in a car currently and id like to change that?

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

You can set the opening key by editing the vehcontrol/client.lua file

Find they keycode for the key you want to use, the current key is ] with the keycode value of 40
You can get the keycodes by visiting this site and looking up the keys
Modify the keycode number on line 11 like below

			if ( IsControlJustReleased( 0, 40 ) or IsDisabledControlJustReleased( 0, 40 ) ) and GetLastInputMethod( 0 ) then -- Key to open NUI https://docs.fivem.net/docs/game-references/controls/
				openVehControl()
			end

File: https://github.com/Manvaril/vehcontrol/blob/master/client.lua

1 Like

Actually its made by ModFreaks just with a changed ui

anyone know how I can make this to put commands like /me for RP?

Hello how can I contact five m supporters

He added the option for command… Look in the config :rofl:

1 Like

nice release ! :slight_smile:

but for open the menu…

Works awesome! Would love to know if there was a way to make clicking the hotkey again to disable it~ It ended up on left CTRL making ESC the close…

I don’t understand exactly what you mean but, I did document how to change the hotkeys to open and close the menu in the posts above. I also give out the place to find the keycodes to do the changes in those posts.

Open: [Release] [Standalone} VehControl NUI Menu
Close: [Release] [Standalone} VehControl NUI Menu

Been trying to fix a problem, when ever i scroll wheel up, in the big map or just sitting in the vehicle, the menu pops up… anyone got a work around ?

1 Like

changing the key will solve the problem

2 Likes

looks nice

Hello, I am having a bit of a hard time having this work.

I can open up the UI but when I click on the buttons nothing actually happens. When I try to use the commands they do work but just not the UI. Is there any general fix for this?

Also I have been finding that I am needing to do the /vehcontrolclose command more than I would prefer. Is there anything I can do to prevent the UI from freezing?

Thanks

1 Like

Having the same issue here, let me know if you find a fix.