Skip to content

Commit

Permalink
Merge pull request #324 from AGCGTA/main
Browse files Browse the repository at this point in the history
Fixed an issue where opening the pause menu just before death would prevent any action.
  • Loading branch information
GhzGarage authored Feb 29, 2024
2 parents c439926 + 5daca74 commit 12ca47d
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 12ca47d

Please sign in to comment.