FULL SOURCE - SENT TO YOUR EMAIL.
YouTube: Preview (Click Here)
RS NPC EMS adds Dr. Graves, an infected emergency medic who can answer player /medic calls when normal EMS coverage is unavailable.
Dr. Graves arrives in an ambulance, approaches the patient, performs a scripted medical examination and CPR-style treatment sequence, heals or revives through the configured medical provider, speaks throughout the rescue using bundled prerecorded dialogue, and then returns to his ambulance and leaves the scene.
The system uses deterministic FiveM/GTA NPC logic and local prerecorded audio. No external voice or runtime speech service is required.
Main Features
Autonomous NPC ambulance response
Injured, laststand and dead-player support
Scripted examination, CPR-style treatment, heal and revive flow
124 bundled prerecorded dialogue clips
8 distinct voice personas
Consistent persona for each complete rescue
Optional subtitles and talking facial animation
Configurable EMS availability rules
Server-authoritative treatment and billing
Cash and bank payment priority
Route recovery for stalled or difficult scenes
Safe patient-side responder relocation when configured
Return-to-ambulance and drive-away sequence
Qbox, QBCore and ESX compatibility paths
Standalone/native fallbacks where practical
Full readable source code
How a Rescue Works
A player uses /medic while injured or downed. The server checks the patient's condition, EMS availability, cooldown and available funds before dispatching Dr. Graves.
The ambulance drives toward the patient and Dr. Graves approaches on foot. Before treatment begins, the server validates the responder and patient again.
Dr. Graves then performs the examination and medical sequence. The configured medical provider heals or revives the patient, after which Dr. Graves finishes the encounter, returns to the ambulance and leaves the scene.
Voice Persona System
The resource includes 124 local OGG recordings organized across 8 prerecorded voice personas and multiple medical and rescue categories.
A single persona is selected at the beginning of each rescue and remains consistent through dispatch, arrival, diagnosis, treatment, recovery and departure.
Dialogue timing follows the actual local audio playback so treatment stages are not rushed ahead of the spoken lines. Subtitles and facial talking animation can be enabled or disabled in configuration.
EMS Availability
Dr. Graves can be configured to respond only when real EMS staffing is below a selected threshold.
Server owners can configure EMS job names, on-duty requirements, maximum real EMS count, treatment price, cooldown and payment-account priority.
Medical Compatibility
Supported integration paths include:
Qbox with qbx_core and qbx_medical
QBCore with qb-core and qb-ambulancejob
ESX Legacy with es_extended and esx_ambulancejob
Native fallback behavior is also available where a supported medical provider is not installed.
Framework and medical-provider adapters are included directly in the resource. No separate rs_bridge dependency is required.
Routing and Recovery
The ambulance uses configurable emergency driving behavior, stuck detection and route retries.
If the vehicle cannot reach a difficult or inaccessible location within the configured limits, the same responder can be safely relocated near the patient rather than creating a duplicate doctor or treatment session.
After treatment, Dr. Graves attempts to return to the ambulance and drive away. Cleanup safeguards prevent abandoned responder entities from remaining indefinitely.
Payment Safety
Billing is handled server-side. The configured fee is charged only when treatment is ready to begin.
A settlement journal records payment intent, confirmed charges, refunds and ambiguous outcomes so administrators can review unusual cases without charging or refunding the same player twice.
Configuration
Server owners can configure the framework mode, treatment price, payment priority, cooldown, EMS staffing rules, doctor and ambulance models, spawn radius, driving behavior, route recovery, treatment animations, treatment timing, departure behavior, voice persona selection, volume, subtitles and diagnostics.
Requirements
FiveM
OneSync
A supported framework and medical resource for full framework-specific medical behavior
Optional progressbar resource; a native fallback is included
Source Access
RS NPC EMS is supplied with readable Lua, HTML, CSS and JavaScript source.