[Release] [Standalone] VehControl NUI Menu

you must have another resource that is conflicting with vehcontrol, try stopping any resources that modify vehicles or has anything todo with vehicles

Cool concept, But if you did find this, then re-leak it on the official page no good man, I won’t be using this until I know it’s made by you.

´

1 Like

When you play with a Controller, when you push up on the control stick it opens the menu. You can use the following code below so that it disables that controller controls so it doesn’t interfere with people using controllers :smiley:

From this:

Citizen.CreateThread(function()
    while true do
		Citizen.Wait(0)
		if IsPedInAnyVehicle(PlayerPedId(), false) then
			if IsControlJustReleased(0, 40) then -- Key to open NUI https://docs.fivem.net/docs/game-references/controls/
				openVehControl()
			end
		end
    end
end)

to this:

Citizen.CreateThread(function()
    while true do
		Citizen.Wait(0)
		if IsPedInAnyVehicle(PlayerPedId(), false) then
			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
		end
    end
end)
1 Like

Looks Sick Thank You

Just reached out to Modfreakz. This isnt made by MF. He is telling me its OG so this guy is in the clear from what im being told.

5 Likes

works good. only thing i see rn is that once you change seats from the driver seat you cant go back unless at least for me i have to use a /shuff script.

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