Dr. Teddy Update

This commit is contained in:
Miho931 2025-07-02 20:34:18 +02:00
parent 68e87abdff
commit 7835e64711
2 changed files with 17 additions and 1 deletions

View file

@ -79,3 +79,13 @@ function HealPlayerWithARE(ped)
ClearTimecycleModifier()
ClearExtraTimecycleModifier()
end
function IsAnyMedicOnDuty()
local players = QBCore.Functions.GetQBPlayers()
for _, player in pairs(players) do
if player.PlayerData.job.name == 'ambulance' and player.PlayerData.job.onduty then
return true
end
end
return false
end