forked from Simnation/Main
Update function.lua
This commit is contained in:
parent
5c05731d0e
commit
d8f0117f9a
1 changed files with 7 additions and 7 deletions
|
@ -89,11 +89,11 @@ function HealPlayerWithARE(ped)
|
|||
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
|
||||
local Players, Amount = QBCore.Functions.GetPlayersOnDuty('ambulance')
|
||||
|
||||
if Amount > 0 then
|
||||
return true
|
||||
end
|
||||
end
|
||||
else
|
||||
return false
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue