diff --git a/client/main.lua b/client/main.lua index 347d4a07..3594b85f 100644 --- a/client/main.lua +++ b/client/main.lua @@ -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