Skip to content

Commit

Permalink
Merge pull request #307 from Scullyy/patch-1
Browse files Browse the repository at this point in the history
Death check update
  • Loading branch information
AvarianKnight authored Apr 16, 2022
2 parents 2eb25b4 + 9e56e85 commit 4e73a11
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions client/module/radio.lua
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,12 @@ end)

--- check if the player is dead
--- seperating this so if people use different methods they can customize
--- it to their need as this will likely never be changed.
--- it to their need as this will likely never be changed
--- but you can integrate the below state bag to your death resources.
--- LocalPlayer.state:set('isDead', true or false, false)
function isDead()
if GetResourceState("pma-ambulance") ~= "missing" then
if LocalPlayer.state.isDead then
return true
end
if LocalPlayer.state.isDead then
return true
elseif IsPlayerDead(PlayerId()) then
return true
end
Expand Down

0 comments on commit 4e73a11

Please sign in to comment.