🚑 AI-MED — Intelligent NPC Paramedic System for QBCore / QBOX
Bring life-saving realism to your city with AI-MED — a fully autonomous NPC ambulance service that responds to downed players, performs on-scene treatment, and revives them dynamically.
No more instant revives. No more magic healing. AI-MED brings immersion, chaos, and cinematic rescue moments to your RP world.
🧠 What is AI-MED?
AI-MED is an AI-driven medical response system for QBCore and QBOX servers.
When a player is downed, they can call in an AI ambulance using /aimed.
A real ambulance with two NPC medics spawns from a configurable distance, navigates to the scene, parks intelligently, and runs to the patient for treatment.
The system features configurable costs, cooldowns, failure chances, and fully modular checks for on-duty EMS or police — giving you total control.
💡 Core Features
✅ Smart Two-Phase AI Driving
Emergency-response driving (ignores traffic) when far away.
Professional, cautious approach when near the player.
Dynamic re-pathing and anti-stuck logic.
✅ Dual Medic System
Both NPCs exit the ambulance and run to the player.
Wait until both are in range before synchronized treatment animations.
Fully immersive — no teleporting or “pop-in” behaviour.
✅ Realistic Medical Flow
Configurable revive time, partial health restore, and treatment animations.
Optional failure chance for realism and tension.
On-scene logging to Discord for every revive.
✅ Off-Road Logic
If the player is far from a road (fields, mountains, beaches),
the ambulance stops safely, and both medics continue on foot.
✅ Economy Integration
Configurable service fee (bank or cash).
Cooldown timer to prevent spam.
Fully integrated with QBCore and QBOX player data.
✅ Modular Framework Checks
Comes with a
client_checks.luafile — easily edit how you detect:“Dead” status
“On duty” EMS or police
Works with both QBCore and QBOX medical systems out of the box.
✅ Discord Logging
Every revive attempt or failure logs to a webhook for staff monitoring or RP storytelling.