Hello, I am trying to figure out how to make the “IsControlPressed” also allow for the key to be held down and move along the menu, without lifting the key and pressing it again.
Here is the current code I am working with. (Right Arrow Key)
keybind("mDright", "right", function()
if IsControlPressed(0, Keys["RIGHT"]) then SendNUIMessage(
{
action = "controlPressed", control = "RIGHT"
})
Citizen.Wait(150)
end
end)