forked from Simnation/Main
Merge branch 'master' of https://git.evolution-state-life.de/Evolution-State-Life/Main
This commit is contained in:
commit
7bda9dd70b
3 changed files with 18 additions and 2 deletions
|
@ -15,7 +15,13 @@ CreateThread(function()
|
||||||
--show3DText(pos, "[E] Hilfe anfordern")
|
--show3DText(pos, "[E] Hilfe anfordern")
|
||||||
DrawText3D(pos.x, pos.y, pos.z, "[E] Hilfe anfordern")
|
DrawText3D(pos.x, pos.y, pos.z, "[E] Hilfe anfordern")
|
||||||
if IsControlJustPressed(0, 38) then
|
if IsControlJustPressed(0, 38) then
|
||||||
|
local doc = IsAnyMedicOnDuty()
|
||||||
|
Wait(100)
|
||||||
|
if doc then
|
||||||
TriggerServerEvent("drteddy:requestDoctor")
|
TriggerServerEvent("drteddy:requestDoctor")
|
||||||
|
else
|
||||||
|
Notify("Dr. Teddy", "Dr. Teddy ist grade nicht im Dienst, ruf den Notdienst", "inform")
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -79,3 +79,13 @@ function HealPlayerWithARE(ped)
|
||||||
ClearTimecycleModifier()
|
ClearTimecycleModifier()
|
||||||
ClearExtraTimecycleModifier()
|
ClearExtraTimecycleModifier()
|
||||||
end
|
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
|
|
@ -81,7 +81,7 @@
|
||||||
* - "Direct": The radio system is based on the distance between the players.
|
* - "Direct": The radio system is based on the distance between the players.
|
||||||
* - "None": The radio always works no matter the distance.
|
* - "None": The radio always works no matter the distance.
|
||||||
*/
|
*/
|
||||||
"mode": "Direct",
|
"mode": "None",
|
||||||
// The maximum distance between two players or to the tower to be able to hear each other.
|
// The maximum distance between two players or to the tower to be able to hear each other.
|
||||||
"maxDistance": 5000
|
"maxDistance": 5000
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue