mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 06:56:03 +01:00
feat: improved RedM support (#162)
* Improvements + remove redm keybind system as it's pointless
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user