[QB/ESX] AI NPC Doctor [FREE]

Message Me I Can Help You Get It Working For Free! On ESX Framework

So im guessing in QB core it counts the number of EMS workers online, including off duty ones? Is there a way to change so that if ems is online, but off duty this will work? Our EMS has to be completely out of the job (off duty) and on another job to make it work.

We would like this to only count EMS that are on ACTIVE DUTY and not use total EMS online.

This script works great, I been needing this in my server ! Thank you downloaded 9/2/2023 and for those using esx don’t forget to download the dependencies !!!
mythic_progbar
progressBars

1 Like

Unable to revive

1 Like

CAN ANYONE HELP ME PLEASE???
c-scripting-core] Creating script environments for hh_aidoc
[ script:hh_aidoc] SCRIPT ERROR: @hh_aidoc/server.lua:4: attempt to index a nil value (global ‘ESX’)
[ resources] Started resource hh_aidoc

im trying to make it so the doctor just spawns on the player instead of driving , can anybody help?

guys this is a dead script, the author doesn’t care about it anymore

found an updated version of this script here 100% working GitHub - GLDNRMZ/lb-aidoc

3 Likes

yo i cant for the life of me get a discord link to get white listed…

Do u have an ESX version of this script??

Following


Unable to resurrect, requesting help

1 Like

I’m having the same issue. What gives? @CodeStudio

Guys!
I described it above, it worked perfectly for me on an ESX server. The QB version also works perfectly for me. Look at the notification system, what you used and what the script asks for, because I think that will be the problem.

"The solution for the ESX framework was provided by this: GitHub - HalCroves/mythic_progbar: FiveM Client-sided Progress Bar <<< ESX (I just put it in QB and it worked.)
Simply copy it to the resource folder and enter it in the server cfg.

Script excerpt from client.lua:"
TriggerEvent("mythic_progbar:client:progress", {
name = “ai_doc”,
duration = Config.ReviveTime,
label = “The doctor is giving you medical aid”,
useWhileDead = true,
canCancel = false,
controlDisables = {
disableMovement = true,
disableCarMovement = true,
disableMouse = false,
disableCombat = true,
},

1 Like

enlace caido ya no existe

I was wondering if there was a way to implement the npc doctor to pull you out of a vehicle if you get downed while driving. Because my server has it set up to where if you’re wearing a harness and crash, you don’t eject, but you get downed while still in the vehicle and when you use the /help option, the NPC can’t help. Thanks in advance!

1 Like

There is. If you can spare some time to learn gta v natives and a little coding, you can easily have it check if a player is in a vehicle when the AI Doc arrives and remove them from the vehicle before healing.

If you need help, DM me. I won’t spoon feed you but I don’t mind assisting you.

2 Likes

I’m having an issue where when a player is down and they type the help command its saying they have to be dead to use the command. could that be from the laststand option my ambulance job uses?

1 Like

on qbcore how can i disable the ambulance part just want a ai to spawn and revive the people, this ai is so stupid they drive away from people

1 Like

Nice one :heart_eyes:

Hello, I would like to ask about Config.Doctor = 0 – Minimum Amount of EMS to work. Is it triggered when there is no doctor online or can it be triggered when there is doctor online?