Only Keyboard

This commit is contained in:
KandaSoranyan
2018-01-21 15:54:25 +01:00
committed by GitHub
parent 2ebffd2920
commit 06fe0c7969
+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