QBCore Medical Resource
SpectiveAIMedic
AI medic and hospital recovery system for QBCore with hospital-bed treatment, field triage, EMS-online blocking, and a built-in route recorder for tuning NPC carry paths.
Version
1.0.0
Author
Spective
Install
Installation Flow
- Place the resource in your server resources folder.
- Ensure qb-core loads before the script.
- Optionally ensure qb-ambulancejob and InteractSound before this resource.
- Add ensure SpectiveAIMedic to server.cfg.
- If you use qb-ambulancejob, apply the laststand guard shown in the project README.
- Restart the server and test /aimedic while downed.
Features
Feature Overview
- Two recovery modes: hospital transport or on-scene field triage.
- NUI selection menu and progress overlay for the full treatment flow.
- Can block usage when EMS are online to preserve roleplay balance.
- Includes a route recording command to tune NPC carry paths into hospital beds.
Configuration
Configuration Focus
The main configuration areas are the core checks, hospital NPC movement settings, and field-treatment timing values.
- Core: downed-state polling, command name, server validation, and EMS-online checks.
- Hospital: price, duration, fade timing, NPC models, vehicle settings, hospitals, and path-to-bed data.
- Field: price, treatment duration, and the field animation setup.
If hospital carry routing feels rough around doors or corners, record a denser route and keep the vectors tight through turns.
Troubleshooting
Troubleshooting Notes
- If
/aimedicopens nothing, verify the server callback exists and the player is actually in a downed state that your framework exposes. - If the progress bar disappears too quickly, make sure the latest HTML files were uploaded and restart the resource.
- If carry animation sync fights with other injury scripts, consider the hard-freeze carry option during sync mode.