Merge pull request #37 from KandaSoranyan/patch-9

Only Keyboard
This commit is contained in:
Don
2018-01-22 01:16:53 -08:00
committed by GitHub
+1 -1
View File
@@ -463,7 +463,7 @@ Citizen.CreateThread(function()
Wait(0)
if IsControlPressed(0, Keys["F2"]) and not ESX.UI.Menu.IsOpen('default', 'es_extended', 'inventory') and (GetGameTimer() - GUI.Time) > 150 then
if IsControlPressed(0, Keys["F2"]) and GetLastInputMethod(2) and not ESX.UI.Menu.IsOpen('default', 'es_extended', 'inventory') and (GetGameTimer() - GUI.Time) > 150 then
ESX.ShowInventory()
GUI.Time = GetGameTimer()
end