mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 17:28:53 +00:00
Reverted new RegisterKeyMapping() native usage for now, its broken :/
This commit is contained in:
+10
-6
@@ -455,13 +455,17 @@ Citizen.CreateThread(function()
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterCommand('showinventory', function()
|
||||
if not isDead and not ESX.UI.Menu.IsOpen('default', 'es_extended', 'inventory') then
|
||||
ESX.ShowInventory()
|
||||
end
|
||||
end, false)
|
||||
Citizen.CreateThread(function()
|
||||
while true do
|
||||
Citizen.Wait(0)
|
||||
|
||||
RegisterKeyMapping('showinventory', _U('keymap_showinventory'), 'keyboard', 'F2')
|
||||
if IsControlJustReleased(0, 289) then
|
||||
if IsInputDisabled(0) and not isDead and not ESX.UI.Menu.IsOpen('default', 'es_extended', 'inventory') then
|
||||
ESX.ShowInventory()
|
||||
end
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
-- Disable wanted level
|
||||
if Config.DisableWantedLevel then
|
||||
|
||||
Reference in New Issue
Block a user