Esx_default_menu Help

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)

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.