feat: improved RedM support (#162)

* Improvements + remove redm keybind system as it's pointless
This commit is contained in:
Scully
2022-11-25 18:05:55 -08:00
committed by GitHub
parent ed7c04ac9c
commit 231d1c3c77
13 changed files with 60 additions and 19 deletions

View File

@@ -50,12 +50,13 @@ function lib.showMenu(id, startIndex)
end
if not openMenu then
local control = cache.game == 'fivem' and 140 or 0xE30CD707
CreateThread(function()
while openMenu do
if openMenu.disableInput == nil or openMenu.disableInput then
DisablePlayerFiring(cache.playerId, true)
HudWeaponWheelIgnoreSelection()
DisableControlAction(0, 140, true)
DisableControlAction(0, control, true)
end
Wait(0)