[Release] Universal Development Menu (M Menu)

I have a problem with the Vehicle part of the menu when try to turn the engine of it doe’s nothing and the engine is still running.

1 Like

Same issue here.

1 Like

I also found that anybody can access the LEO part of the menu even if they are police or not.

1 Like

Is this resource going to be getting an update to fix the vehicle engine toggle on/off and also made so the L.E.O part of the menu is only able to be used by Police.? :slight_smile:

1 Like

Yeah it will bery soon. My friend DevDawson is working on another project currently but he will work on this one soon. Expect an update soon enough.

1 Like

For those of you that were having the issue with changing the button to open the menu. If you are trying to set it to an F# key (ie. F1-F12) then you need to change the following

if IsControlJustPressed(1, Menu_Key) then

to

if IsControlJustPressed(0, Menu_Key) then

in the client.lua it is around line 330. For some reason this doesn’t fix it for LEO vehicles though

2 Likes

What’s your issue with vehicle engine toggle? This resource is standalone and doesn’t support framework permissions as of now, possibly in the future I’ll add that.

2 Likes

I’m assuming you don’t have mythic notifications installed?

1 Like

The problem with the engine is that on the vehicle menu when toggle the engine to shut off it doe’s not shut off and doe’s nothing so the car is constantly running using fuel and the L.E.O part of the menu can be access by anybody not just Police.

1 Like

Do you have any resources that have any control over the vehicle at all?

1 Like

Vehicle control resource works but can’t use that with m menu as then they will clash.

1 Like

From the sounds of it, whatever vehicle control resource you’re using is causing you to not turn off your vehicle.

1 Like

I don’t use none bar the m menu and lux vehicle controls what doe’s lights not engine or none of that stuff.

1 Like

Do I need to delete the Example Menu then?

1 Like

I found a fix to the Engine Toggle, what you have to do is on Line 525 and 529 is add a ,true to the end of the string.

So it would be

if (GetPedInVehicleSeat(veh, -1) == LocalPed()) then

            if GetIsVehicleEngineRunning(veh) then
                SetVehicleEngineOn(veh, false, false, true)
                SetVehicleUndriveable(veh, true)
                exports['mythic_notify']:SendAlert('success', "Engine Turned Off")
            else
                SetVehicleEngineOn(veh, true, false, true)
                SetVehicleUndriveable(veh, false)
                exports['mythic_notify']:SendAlert('success', "Engine Turned On")
            end

        else
            exports['mythic_notify']:SendAlert('error', "You're not in the drivers seat")
        end
2 Likes

@DevDawson
Any update on the emotes?

1 Like

What he means is being able to place the nearest player into a LEO vehicle instead of asking them to hop in.

1 Like

Any idea how to make this a right-aligned menu?

1 Like

Can someone tell me what line specifically and in which file I need to change to disable this menu from interacting with a controller? I’ve tried a few things to no avail. Loving the menu though!

1 Like

i thought i did install it, maybe i did it wrong, ill check

1 Like