Skip to content

Commit

Permalink
fix(client/qb): prevent inventory access while in last stand state (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Manason authored Apr 27, 2023
1 parent b57cf56 commit e88524b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/bridge/qb/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ RegisterNetEvent('QBCore:Player:SetPlayerData', function(data)
if source == '' or not PlayerData.loaded then return end

if data.metadata.isdead ~= PlayerData.dead then
PlayerData.dead = data.metadata.isdead
PlayerData.dead = data.metadata.isdead or data.metadata.islaststand
OnPlayerData('dead', PlayerData.dead)
end

Expand Down

0 comments on commit e88524b

Please sign in to comment.