🚑 Lazy AI Ambulance – Automated Emergency Medical Response for FiveM
Lazy AI Ambulance is an advanced server-side script for FiveM that automatically deploys an AI-controlled paramedic and ambulance when a player's health reaches a critical state. It's ideal for RP servers where EMS players may not always be available, ensuring immersive and realistic emergency responses at all times.
💡 Key Features
Automatic AI Paramedic Dispatch: When a player becomes unconscious, an AI medic spawns nearby and drives an ambulance to the scene.
Realistic Treatment: The medic treats the injured player after arrival, with a configurable treatment duration.
Flexible Notification Support: Compatible with ESX, QBCore, or any custom notification system.
Adjustable Driving Behavior: The ambulance uses a smart driving style—fast, but not overly reckless.
Easy Customization: Modify paramedic models, vehicle types, treatment time, and spawn distance directly in the
config.lua.
⚙️ Configuration Example
Config = {}
Config.NotifyTrigger = "esx" -- Options: "esx", "qbcore", or "custom"
Config.AIModel = "s_m_m_paramedic_01" -- NPC model for the paramedic
Config.AIVehicle = "ambulance" -- Vehicle used for the emergency response
Config.TreatmentTime = 8000 -- Treatment duration in milliseconds (e.g., 8000 = 8 seconds)
Config.DriveAggressiveness = 786603 -- Driving style of the AI driver
Config.SpawnDistance = 50 -- Max distance from the player where the AI can spawn
✅ Benefits
No need for on-duty EMS players
Fully automated and immersive RP experience
Lightweight and easy to integrate into any server
Debug-friendly and stable during continuous use