hi, how to make a faster „scrolling” options, when we holding arrow button?
Hi, you need to change the value of 150 to a smaller value where it is
(GetGameTimer() - GUI.Time) > 150
- normal scrolling
(GetGameTimer() - GUI.Time) > 25
- accelerated scrolling with shift
SendNUIMessage({action = 'controlPressed', control = 'ENTER'})
GUI.Time = GetGameTimer()
end
if IsControlPressed(0, Keys['BACKSPACE'])and (GetGameTimer() - GUI.Time) > 150 then
SendNUIMessage({action = 'controlPressed', control = 'BACKSPACE'})
GUI.Time = GetGameTimer()
end
if IsControlPressed(0, Keys['TOP'])and (GetGameTimer() - GUI.Time) > 120 then
SendNUIMessage({action = 'controlPressed', control = 'TOP'})
GUI.Time = GetGameTimer()
elseif IsControlPressed(0, Keys['TOP']) and IsControlPressed(0, Keys['LEFTSHIFT'])and (GetGameTimer() - GUI.Time) > 25 then
SendNUIMessage({action = 'controlPressed', control = 'TOP'})
GUI.Time = GetGameTimer()
end
if IsControlPressed(0, Keys['DOWN'])and (GetGameTimer() - GUI.Time) > 120 then
SendNUIMessage({action = 'controlPressed', control = 'DOWN'})
GUI.Time = GetGameTimer()
elseif IsControlPressed(0, Keys['DOWN']) and IsControlPressed(0, Keys['LEFTSHIFT'])and (GetGameTimer() - GUI.Time) > 25 then
SendNUIMessage({action = 'controlPressed', control = 'DOWN'})
GUI.Time = GetGameTimer()
end
Doesnt work for me. It doesnt input any error nothing. I tried using deafult menu and works. I dont know why this happnes
Oeasen
February 22, 2025, 6:46pm
26
Hello, nice work, mate! Quick question, how can I replace the jobs menu with this?
vames23
February 23, 2025, 3:26am
27
Hi, on your screen is esx_context, we have esx_menu_default, if you would like to swap them you should change the code in your policejob from ESX.Context to the one in the documentation according to the parameters