diff --git a/client/main.lua b/client/main.lua index bc7153be..2f23cacb 100644 --- a/client/main.lua +++ b/client/main.lua @@ -112,11 +112,11 @@ Citizen.CreateThread(function() while true do Citizen.Wait(0) - if IsControlJustReleased(0, Keys['F3']) and GetLastInputMethod(2) and not isDead then + if IsControlJustReleased(0, Keys['F3']) and IsInputDisabled(0) and not isDead then OpenAnimationsMenu() end - if IsControlJustReleased(0, Keys['X']) and GetLastInputMethod(2) and not isDead then + if IsControlJustReleased(0, Keys['X']) and IsInputDisabled(0) and not isDead then ClearPedTasks(PlayerPedId()) end