Coma & Down System v3
When reaching lower health you get injured, after dropping even lower you go down. After a while you get into coma stage, the script can be customized to allow different coma types. Easy commands like /injured /coma /die /down /revive /respawn can be used. Adds up to your roleplay basics. Customizable & toggle-able UI.
Overview
Section titled “Overview”Coma & Down System v3 is a comprehensive medical roleplay system that creates realistic health states and medical interactions for your FiveM server. From injury to coma, this system provides progressive health degradation with customizable medical logic, animations, and treatment mechanics.
Key Features
Section titled “Key Features”- Medical System - Easy to configure, use and understand. Includes CABCDE/AVPU and more medical based logic
- Customizable Animations - Different animations for each health state
- Injured Mode - Progressive health state system
- Screen Effects - Visual feedback for damage states
- Damage Information - Detailed information about damage obtained
- Configurable Admins - Discord API / Ace permissions support
- Comprehensive Commands - /injured, /coma, /down, /die, /revive, /respawn, /treat, /myhealth
- Admin Commands - /areviveall, /arespawnall for server management
- Configurable Coma Types - Customize different coma/down types
- Cooldown Systems - Prevent abuse and maintain balance
- Escrow Protection - Secure resource protection
- Standalone - No framework dependencies required
Important Pre-Installation Notes
Section titled “Important Pre-Installation Notes”System Requirements & Compatibility
Section titled “System Requirements & Compatibility”Framework Compatibility
Section titled “Framework Compatibility”- Standalone: No framework dependencies required
- Discord API: Compatible with Discord API permissions
- Ace Permissions: Compatible with Ace permission system
Installation Process
Section titled “Installation Process”Step 1: Download the Resource
Section titled “Step 1: Download the Resource”- Access CFX Portal
- Go to CFX Portal Assets
- Find “Coma & Down System” in your granted assets
- Download the ZIP package
Step 2: Extract and Transfer
Section titled “Step 2: Extract and Transfer”-
Extract the ZIP file
- Unpack the downloaded ZIP package to a local folder
- Ensure all files are properly extracted
-
Transfer to Server
- Set your FTP client to binary transfer mode
- Upload the
night_coma_down_systemfolder to your server’sresourcesdirectory - Maintain the original folder structure
Step 3: Server Configuration
Section titled “Step 3: Server Configuration”Add the following line to your server.cfg file:
ensure night_coma_down_systemStep 4: Configuration Setup
Section titled “Step 4: Configuration Setup”-
Navigate to Config File
- Open
night_coma_down_system/config/config.lua - Review all configuration options
- Open
-
Configure Settings
- Set up health state thresholds
- Configure coma types and durations
- Adjust admin permissions
- Customize animations and effects
How It Works
Section titled “How It Works”Health State System
Section titled “Health State System”- Progressive Degradation: Health decreases through injury → down → coma states
- Customizable Thresholds: Configure when each state triggers
- Visual Feedback: Screen effects and animations for each state
- Damage Tracking: Detailed information about damage sources
Medical System
Section titled “Medical System”- CABCDE/AVPU Logic: Professional medical assessment system
- Treatment Mechanics: /treat command for medical roleplay
- Health Monitoring: /myhealth command for self-assessment
- Medical Attributes: Track various health parameters
Command System
Section titled “Command System”- Player Commands: /injured, /coma, /down, /die, /revive, /respawn
- Medical Commands: /treat, /myhealth for medical interactions
- Admin Commands: /areviveall, /arespawnall for server management
- Permission-Based: Configurable admin access
Export Functions
Section titled “Export Functions”Server-Side Exports
Section titled “Server-Side Exports”Use these exports from other server-side scripts to control player states:
-- Revive a playerexports['night_coma_down_system']:RevivePlayer(source)
-- Respawn a playerexports['night_coma_down_system']:RespawnPlayer(source)
-- Get player's current coma typeexports['night_coma_down_system']:GetPlayerComaType(source)Integration & Compatibility
Section titled “Integration & Compatibility”Framework Integration
Section titled “Framework Integration”- Standalone Operation: Works without any framework
- Universal Compatibility: Compatible with all FiveM server setups
- Permission Systems: Supports Discord API and Ace permissions
Resource Compatibility
Section titled “Resource Compatibility”- Discord Spawn Integration: Compatible with night_discord_spawn
- Medical Systems: Integrates with other medical resources
- Roleplay Systems: Enhances medical roleplay scenarios
Server Applications
Section titled “Server Applications”- Medical Roleplay: Realistic health and injury systems
- Emergency Services: Enhanced EMS and medical scenarios
- Survival Servers: Progressive health degradation
- Realistic Gameplay: Adds depth to combat and injury mechanics
Troubleshooting
Section titled “Troubleshooting”Common Issues
Section titled “Common Issues”Health States Not Working
Section titled “Health States Not Working”Commands Not Working
Section titled “Commands Not Working”Medical System Issues
Section titled “Medical System Issues”Error Messages
Section titled “Error Messages”| Error | Solution |
|---|---|
| “Resource not found” | Check resource folder name and ensure line |
| “Health state not working” | Verify health threshold configuration |
| “Command denied” | Check admin permission settings |
| “Medical system disabled” | Enable medical system in configuration |
Best Practices
Section titled “Best Practices”Configuration Best Practices
Section titled “Configuration Best Practices”- Start with default settings and adjust based on server needs
- Test health thresholds to find the right balance
- Configure realistic coma durations for immersion
- Set appropriate admin permissions for security
Server Integration
Section titled “Server Integration”- Coordinate with medical systems for balanced gameplay
- Integrate with emergency services for realistic scenarios
- Test with your server’s health systems
- Review and optimize settings based on player feedback
Roleplay Integration
Section titled “Roleplay Integration”- Create realistic medical scenarios for roleplay
- Integrate with EMS and medical services
- Use for survival and combat scenarios
- Coordinate with other medical resources
Support
Section titled “Support”Getting Help
Section titled “Getting Help”If you’re having trouble with Coma & Down System v3:
- Review this documentation thoroughly
- Check server console for error messages
- Join our Discord for community support
Community Support
Section titled “Community Support”Join our Discord community for:
- Technical support
- Configuration help
- Best practices sharing
- Community discussions