Skip to content

Commit

Permalink
fix: radialmenu on death (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
TonybynMp4 authored Mar 4, 2024
1 parent 5400313 commit 66ad351
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions server/main.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
RegisterNetEvent('hospital:server:SetLaststandStatus', function(isDead)
TriggerClientEvent('radialmenu:client:deadradial', source, isDead)
AddStateBagChangeHandler('qbx_medical:deathState', nil, function(bagName, _, value)
local playerId = GetPlayerFromStateBagName(bagName)
TriggerClientEvent('radialmenu:client:deadradial', playerId, value == 2 or value == 3)
end)

-- qb-amublancejob compatibility
Expand Down

0 comments on commit 66ad351

Please sign in to comment.