Vehicle Options Menu - Liveries, Extras, Doors & Windows. [Standalone]

When I press W the menu opens, but I don’t want it to open to W and even if I change it in config.lua it still remains on W and any letter. can someone help me to change it at W? Plz

Cant get this script to work at all

1 Like

Yeah you’re not the only one pal, I cant seem to get it either… Anyone able to help?

good job

1 Like

I edited the Script a littlebit to prevent the car repair by not allowing to open the menu if the car is damaged
Maybe its not clean or something, but i dont care its the way i wanted it to be.

The easy way for you guys:

At the Bottom of the Script at line (129)

Change from this

Citizen.CreateThread(function()

    while true do

        Citizen.Wait(0)

        _menuPool:ProcessMenus()

       

        local ped = GetPlayerPed(-1)

        local vehicle = GetVehiclePedIsIn(ped, false)

       

        if IsControlJustReleased(1, Config.menuKey) then

            if IsPedInAnyVehicle(ped, false) and GetPedInVehicleSeat(vehicle, -1) == ped then

                print("Open Menu!")

                collectgarbage()

                openDynamicMenu(vehicle)

                vehMenu:Visible(not vehMenu:Visible())

            end

        end

       

        if IsPedInAnyVehicle(ped, false) == false then

            if vehMenu ~= nil and vehMenu:Visible() then

                vehMenu:Visible(false)

            end

        end

    end

end)

to this:


Citizen.CreateThread(function()

    while true do

        Citizen.Wait(0)

        _menuPool:ProcessMenus()

       

        local ped = GetPlayerPed(-1)

        local vehicle = GetVehiclePedIsIn(ped, false)

        local health = GetVehicleBodyHealth (ped)

       

        if IsControlJustReleased(1, Config.menuKey) then

            if IsPedInAnyVehicle(ped, false) and GetPedInVehicleSeat(vehicle, -1) == ped and GetVehicleBodyHealth(vehicle) == 1000 then

                collectgarbage()

                openDynamicMenu(vehicle)

                vehMenu:Visible(not vehMenu:Visible())

            end

        end

        if IsControlJustReleased(1, Config.menuKey) then

            if GetVehicleBodyHealth(vehicle) ~= 1000 then

            exports['mythic_notify']:DoHudText('error', 'Your car is damaged!')

            end

        end

        if IsPedInAnyVehicle(ped, false) == false then

            if vehMenu ~= nil and vehMenu:Visible() then

                vehMenu:Visible(false)

            end

        end

    end

end)

You can delete the line 144

            exports['mythic_notify']:DoHudText('error', 'Your Car is damaged!')

If you dont use mythic_notify. The Line is there for a red message that the car is damaged, and because of this you cant open the menu.

1 Like

Hi, I don’t know if you can help me with this but I would like only the police to be able to open said menu, you could help me if it doesn’t bother me, thanks.

Are you using ESX or QBCore?

I would change it to that:

Citizen.CreateThread(function()

    while true do

        Citizen.Wait(0)

        _menuPool:ProcessMenus()

       

        local ped = GetPlayerPed(-1)

        local vehicle = GetVehiclePedIsIn(ped, false)

        local health = GetVehicleBodyHealth (ped)

       

        if IsControlJustReleased(1, Config.menuKey) then

            if IsPedInAnyVehicle(ped, false) and GetPedInVehicleSeat(vehicle, -1) == ped and GetVehicleBodyHealth(vehicle) >= 990 then

                collectgarbage()

                openDynamicMenu(vehicle)

                vehMenu:Visible(not vehMenu:Visible())

            end

        end

        if IsControlJustReleased(1, Config.menuKey) then

            if GetVehicleBodyHealth(vehicle) <= 990 then
				exports['mythic_notify']:DoHudText('error', 'Youre Vehicle is damaged!')

            end

        end

        if IsPedInAnyVehicle(ped, false) == false then

            if vehMenu ~= nil and vehMenu:Visible() then

                vehMenu:Visible(false)

            end

        end

    end

end)```

That prevents that a little scratch already disables the menu.

Hi, I’m still on ESX, thanks for replying.

Good if I put it like this but I would like to have it something cleaner that only said work can open the menu.

i woll test Something and reply later

1 Like

Thank you so much

Gonna grab this tomorrow. I want 3 types of car garage in my city. Performance mods, maintenance and bodyshop/style.

I have the big problem that if players have a broken car, then add some extras and the car is repaired. Can this be deactivated?

If you look a little higher you have the solution by ofcShiro / Psydo

1 Like

Hi, I left this menu a little apart to focus on other things, well after a while (I’m not a programmer) I’ll leave it emphasized so that nobody eats me when I give this, this is to have the private menu for the police if you want it for someone else work change police for x work
client.lua (7.1 KB)

Is it possible to limit this to one job?

i need heelp it dosent work

Hello, in what sense does this no longer work?
Vehicle-UI.rar (2.5 KB)
this is modified so that only police use the menu

make sure they have what they need working for the menu