Skip to content

Commit

Permalink
Update main.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
JHansen2000 committed Jun 20, 2024
1 parent b412e68 commit ffc1281
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ end)
function SetDeathState(deathState)
playerState:set(DEATH_STATE_STATE_BAG, deathState, true)
DeathState = deathState

local playerData = QBX.PlayerData
playerData.metadata['isdead'] = (deathState == sharedConfig.deathState.DEAD)
playerData.metadata['inlaststand'] = (deathState == sharedConfig.deathState.LAST_STAND)
TriggerServerEvent('qb-core:server:SetMetaData', 'isdead', playerData.metadata['isdead'])
TriggerServerEvent('qb-core:server:SetMetaData', 'inlaststand', playerData.metadata['inlaststand'])
end

BleedTickTimer, AdvanceBleedTimer = 0, 0
Expand Down

0 comments on commit ffc1281

Please sign in to comment.