OpsLab Books
Realplay Scripts /RPS AI Medic Introduction
Help Sign in Sign up
RPS AI Medic

πŸš‘ RPS AI Medic

Bring immersive emergency assistance to your FiveM server with RPS AI Medic. When no EMS personnel are available, players can call an AI-controlled medic who travels to their location, performs treatment, and revives themβ€”all while respecting configurable restrictions, cooldowns, and framework integrations.


✨ Features

  • πŸ€– AI Medic automatically travels to the player's location
  • ❀️ Revives players directly at their current position
  • πŸ’° Configurable treatment pricing
  • πŸš‘ Automatically disables when enough EMS are online
  • ⏳ Server-side cooldown system (persists across reconnects)
  • πŸ›‘οΈ Anti-spam request protection
  • πŸ“ Restricted zone support
  • 🎭 Random AI medic models
  • πŸ“’ Discord webhook logging
  • πŸ”„ Compatible with multiple ambulance systems
  • βš™οΈ Fully configurable through config.lua
  • πŸ”’ Escrow protected with editable configuration

πŸ“¦ What's Included

  • AI Medic NPC
  • Automatic player treatment
  • Revive system
  • EMS online checking
  • Payment handling
  • Cooldown management
  • Anti-spam protection
  • Discord logging
  • Configurable revive events
  • Restricted area support

βš™οΈ Configuration

Everything can be configured including:

  • EMS job name
  • Maximum EMS online
  • Treatment cost
  • Society account
  • Revive duration
  • Command name
  • Cooldown
  • Anti-spam timer
  • Medic models
  • Walking speed
  • Restricted zones
  • Discord webhook
  • Revive events

πŸš‘ How It Works

  1. Player becomes incapacitated.
  2. Player uses the AI Medic command.
  3. Script checks: - EMS online count - Cooldown - Restricted zones - Anti-spam timer
  4. Payment is processed.
  5. AI Medic spawns nearby.
  6. Medic walks to the player.
  7. Treatment countdown begins.
  8. Player is revived in place.
  9. Optional ambulance events are triggered.
  10. Call is logged to Discord (optional).

πŸ”§ Requirements

  • rps_lib

Compatible with:

  • QBX
  • QBCore (via RPS Lib bridge)
  • ESX (via RPS Lib bridge)

πŸ’¬ Commands

Command Description
/aimedic Request an AI Medic

πŸ› οΈ Changelog Highlights (v1.0.1)

Added

  • Server-side cooldown
  • Request throttling
  • Restricted zones
  • Random medic models
  • Discord webhook logging
  • Multiple revive event support
  • Native revive system
  • Floating treatment countdown

Fixed

  • Payment verification
  • Infinite treatment loop
  • Revive event timing
  • Cooldown tracking
  • Debug permissions
  • Request handling
  • Network revive issues

🎯 Perfect For

  • Roleplay Servers
  • Economy Servers
  • Survival Servers
  • Public Communities
  • Private Communities

πŸ”’ Escrow Information

  • Configuration is fully editable.
  • Script is protected using FiveM Asset Escrow.
  • No core file modifications required.

πŸ“š Documentation

Documentation:

https://docs.realplayscripts.co.za/


πŸ’¬ Support

Need help?

Join our Discord community for support, updates, and feature requests.

Discord

https://discord.gg/realplayscripts


πŸ›’ Purchase

Available exclusively from the Real Play Scripts Tebex Store.

Store

https://tebex.realplayscripts.co.za


❀️ Why Choose RPS AI Medic?

Whether your server has a full EMS team or players are online during quiet hours, RPS AI Medic ensures nobody is left stranded. It provides an immersive AI-powered medical response while maintaining server balance through pricing, cooldowns, and EMS availability checks.