Skip to content

Commit

Permalink
Fixed an issue where opening the pause menu just before death would p…
Browse files Browse the repository at this point in the history
…revent any action.
  • Loading branch information
azutake committed Jan 18, 2024
1 parent 787d578 commit 5daca74
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions client/dead.lua
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ CreateThread(function()
if isDead or InLaststand then
sleep = 5
local ped = PlayerPedId()
if IsPauseMenuActive() then
SetFrontendActive(false)
end
DisableAllControlActions(0)
EnableControlAction(0, 1, true)
EnableControlAction(0, 2, true)
Expand Down

0 comments on commit 5daca74

Please sign in to comment.