ev_pulsecheck

EV Pulse Check System

The EV Pulse Check System allows emergency responders (police and ambulance roles) to check the pulse of nearby players. The system includes animations, customizable interaction prompts, and dynamic responses based on the patient's current status.


System Features

Pulse Check Interaction

  1. Initiating a Pulse Check:

    • Emergency responders can initiate a pulse check on nearby players.

    • An animation plays during the process for immersion.

  2. Dynamic Pulse Responses:

    • Players being checked can select from predefined pulse options or respond with their current pulse value.

    • The system dynamically fetches and displays the pulse data from osp_ambulance.

  3. Notifications:

    • Both the checker and the patient receive real-time notifications about the pulse check results.


Configuration

This system assumes emergency responder roles and integrates seamlessly with existing roleplay frameworks. No direct configuration file is provided; adjustments can be made in the script itself for role or interaction customization.


Client-Side Details

Pulse Check Logic

Initiating a Pulse Check

The system checks for nearby players and triggers the pulse check interaction:


Displaying Pulse Options

After the pulse check request, the patient is presented with pulse response options:


Client Notifications

The pulse check result is displayed to the responder using qb-core notifications:


Server-Side Details

Pulse Validation

The server validates whether the target player is eligible for a pulse check:


Player Response Handling

Responses from the patient are handled and relayed to the responder:

A notification is sent to the responder with the pulse check results:


Example Scenarios

Scenario 1: Successful Pulse Check

  1. An emergency responder initiates a pulse check.

  2. The patient receives a menu to respond with their pulse status.

  3. The responder receives a notification with the patient’s pulse response.


Scenario 2: No Player Nearby

  1. An emergency responder attempts a pulse check.

  2. No player is within range.

  3. A notification appears: "Nobody close enough to pulse check."


Notes

  1. Role Validation:

    • Ensure only designated roles (police/ambulance) can initiate pulse checks.

  2. Integration:

    • Relies on osp_ambulance to fetch the player's current pulse.

  3. Customization:

    • Adjust durations, labels, and localization for interaction prompts to suit gameplay requirements.

Last updated