oTag AI EMS | Automated NPC Medic Response

oTag AI EMS | Automated NPC Medic Response

$14.99

Add to Basket

DEMO VIDEO: https://youtu.be/CJSgtbVLmQ4

Are your server's EMS players offline? Keep your server running smoothly and your players in the action with oTag AI EMS. This script provides a fully automated, immersive NPC medic response system for players who are down and need transport to a hospital.

When a player calls for help, a complete AI-driven scene unfolds. An ambulance is dispatched from the nearest hospital, drives to the player, and a paramedic performs a full, multi-step transport sequence—all visible to other players on the server. With detailed Discord logging and easy configuration, this is the essential "EMS are offline" solution for any QBCore server.


Core Features


  • Fully Automated AI Scene: When a player uses the /callaiems command, a complete sequence begins.

    • An AI paramedic spawns in an ambulance at the nearest hospital.

    • The ambulance drives to the player's location with its siren active.

    • The medic exits the vehicle, retrieves a stretcher, places the player on it, and loads them into the back of the ambulance.

    • The medic drives the player to the hospital and unloads them.

    • The medic transports the player on a stretcher to a final drop-off point inside the hospital.

  • Networked Scenario: The entire process is visible to all nearby players, as the ambulance, medic, and stretcher are all networked entities.

  • Multi-Hospital Support: The script supports multiple hospital locations. The AI will intelligently dispatch an ambulance from the hospital closest to the player's current location.

  • Discord Webhook Logging: Automatically sends a detailed log to your Discord server via a webhook when a player has been successfully transported by the AI EMS.

    • The log is a clean embed that includes the player's name and a timestamp for when the event occurred.

  • On-Screen UI: Features an optional on-screen display showing the distance to the approaching ambulance. It also prompts the player to press [E] to get off the stretcher at the end of the sequence.

  • Highly Configurable:

    • Easily add or modify hospital locations, including coordinates for ambulance spawning, patient drop-off, and the final indoor destination.

    • Toggle whether the player is automatically revived at the end of the process or simply left on their feet at the final location.

    • Enable or disable server console logging and client-side print logs.


🛠️ Installation & Dependencies


  1. Ensure you have all dependencies installed.

  2. Drag and drop the resource folder into your server's resources directory.

  3. Configure shared/shared.lua with your hospital locations and Discord webhook URL.

  4. Add ensure otag-ai-ems (or your resource name) to your server.cfg.

Dependencies:

  • qb-core