Skip to content

Commit

Permalink
fix radialmenu on death
Browse files Browse the repository at this point in the history
  • Loading branch information
TonybynMp4 authored Mar 4, 2024
1 parent 5400313 commit caf9bc3
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 caf9bc3

Please sign in to comment.