Mi**-aiems β Advanced AI EMS System for QBCore**
Smart, Reliable, and Fully Automated Medical Response
mi-aiems adds intelligent AI medics (car, boat, and helicopter units) that revive players when real EMS are off-duty or overwhelmed.
It is optimized for production QBCore servers, with realistic behaviour, advanced anti-abuse systems, and a complete insurance economy.
Perfect for servers with low EMS availability, high player counts, or immersion-driven gameplay.
π What This Script Provides
β Fully Intelligent AI EMS Units
-
Ground units: Ambulance drives to the player, medic exits, performs animations & CPR
-
Boat rescue: When players are in water, boat crew rescues and transports them to the hospital
-
Helicopter extraction: AI heli hovers above, medic rappels down, revives the player
β Smart Behaviour & Navigation
- Dynamic spawn selection (roads, water, mountain, elevation)
- Rappel system with fallback landing logic
- CPR progress bar (qb / ox)
- Clean animations (inspection β CPR β wake-up)
β Realistic Rules & Restrictions
- Disable AI EMS when real EMS are online (configurable)
- Mode requirements: water-only boats, altitude-only helis, etc.
- Per-mode βmust be downedβ requirements
β Full Economy Integration
- Configurable revive cost (cash / bank)
- Society payouts (ambulance job)
- Optional AI medical insurance system:
- Buy insurance for X days
- Free calls or discounted calls
- Insurance NPC with qb-target / ox_target / E-prompt
β Anti-Abuse & Safety
- Per-player cooldowns
- Teleport abuse prevention
- Automatic cleanup of vehicles & peds
- Full state reset on resource restart
β Easy Customization
All settings are controlled in config.lua:
- Vehicle models & liveries
- Animations & timers
- ETA behaviour based on cause of death
- Blip icons
- Spawn logic
- Job modifiers & whitelist