[Release] [Standalone] VehControl NUI Menu

This is not from nopixel, this is from ModFreakz, Likewise, the code is not the same, even if it is the same, while the code is not the same, it cannot be considered leak

Unfortunately you can’ only move back to driver from the passenger seat, I need to figure out how to make it so you can move to any seat from any seat.
This is on my todo list, I did not feel like figuring it out at the time of release because it really doesn’t hinder the functionality of the whole of the mod.

did you try SetPedIntoVehicle with seat number ?

I actually did, and the change was made, I just have not pushed it to the repo yet as I want to tackle the other stuff on the todo list, it may get pushed later today or tomorrow

1 Like

woow cool

Saw the mod, ignored the comments and put it in, works well! Just the hood wouldn’t work. I will look into it when im done with work later! but good job!

Ya im not able to switch to driver seat from any seat only from passenger seat can i actually use my /shuff script to get there. tried without. just puts me in automatically without the /shuff script to prevent being able to stop auto shuff

the latest release (v1.1.0) fixes the drivers seat switch issue

Does this sync correctly with other players on the server? For example when I open the trunk or the hood? Cause I don’t see a server script in here.

I have not tested that

Do you use the menu with mouse? Or with keyboard so you still can drive while menu open?

Might be a good idea to check, and add that functionality if it doesn’t work, since otherwise only you can see what you’re doing, and in a multiplayer game it’s, well yeahh

It syncs with other player btw

not working actually for me. It shows, but dont work

@METYM don’t change the resource name leave it vehcontrol

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