[PAID] [QB/ESX/STANDALONE] Release of an injured, coma, down & medical system (v3)

Injured, coma & down System

Description

Allow your players to roleplay being injured by reaching low health. Includes commands allowing you to manipulate the stages of being injured.

Video showcase

Screenshot

Features

v1.0.0

  • Standalone script.
  • Uses the native exports.spawnmanager:spawnPlayer() function to make it adapt to your framework.
  • Automatically tracks players health and ‘downs’ them upon reaching a certain low health.
  • /down /die /revive /respawn to manipulate your characters wellbeing.
  • Native lightweight UI spiced up with some suitable emojis.
  • Animated.
  • Escrow protected.

v.1.1.0

  • Added customizable UI.
  • Added toggle-able UI.
  • Optimized & rewrote some methods.

v1.2.0

  • Rewrote the configuration and script. Much more configurable now!
    (Settings, icons, UI, thresholds, coma types and timers)
  • Added an injured stage.
  • Added /injured command to trigger the injured stage.
  • Made the isPlayerNearlyDead more logic.
  • Added /coma to trigger direct coma mode.
  • Added configurable coma types to your liking.

v1.3.0 Expansion

  • Added Discord webhook integrations.
  • Added a configurable cooldown option, so players can’t abuse the commands to revive or respawn.
  • Added a bypass with a customizable server side permission function for the cooldown.
  • Added a customizable icon for the cooldown text.

v1.3.1 Patch
(Free for people who already have the script) now available on https://store.ea-rp.com/. (or https://keymaster.fivem.net/), if you want to update yours!)

  • Fixed the cooldown keys, automated reset integrated.
  • Fixed typo in the config.
  • Fixed a mistake in the fxmanifest.lua.

v1.4.0 Expansion

  • Added injured walking stage.
  • Added configurable screen effects.
  • Added Developer tools to test screen effects.
  • Added a blood drop ‘meter’ on screen when injured, to allow players to recognize they’re injured.

v1.4.0 Patch

  • Unlocked s_functions.lua to be edited, was escrowed because of a typo.

v2.0.0

  • Medical System which is easy to configure, use and understand. Includes CABCDE/AVPU and more medical based logic. This system allows you to /treat wounded players and see their medical attributes. /myhealth shows medical attributes as well. You can enable or disable this additional system at your desire.
  • Customisable animations upon health states.
  • Injured mode.
  • Screen effects.
  • Information about the damage you have obtained.
  • Configurable admins. (Discord API / Ace permissions)
  • Commands to set states: /injured, /coma, /down, /die, /revive, /respawn, /treat, /myhealth etc…
  • /areviveall (Admin revive all)
  • /arespawnall (Admin respawn all)
  • Configurable coma/down types to your liking.
  • Cooldown systems.
  • Escrow protected.
  • Standalone.
  • And more…

v3.0.0

  • Optimized the code -0.03ms.
  • Added QB/ESX/Ace/Discord API permissions system.
  • Added OnPlayerTreated(userServerId) to c_functions.lua.
  • Added fall damage, vehicle damage and object damage to get registered to the damage & medical system.
  • Added language settings for some parts which did not include them.
  • Fixed registering damage and synchronizing this data over all online players.
  • Fixed the code for treating players, preventing data loss.
  • Fixed AVPU treatment code logic and added randomizers to result.

Obtain the resource via our webstore.

Direct → https://store.nights-software.com/package/5009962
Homepage → https://store.nights-software.com

Our other resources:

[& more…](https://store.nights-software.com/ :globe_with_meridians:)

Code accessible Partially
Subscription based No
Lines (approximately) 1k
Requirements None
Support Yes (Support button on https://store.nights-software.com)
5 Likes

Amazing works great! would recommend.

1 Like

Preview ?

Coming soon! Hang in there whilst we work on a video.

1 Like

v1.4.0 Patch

  • Unlocked s_functions.lua to be edited, was escrowed because of a typo.

so does e to revive call ambulance job worker? or does it just revive the player?

Just revive the player! :slight_smile:

well then its not very usable in a roleplay server where there are ems. ems would never be able to get a dead player notofication and never be able to go and help the player. hospitals would be made useless aswell.

I disagree.

The script allows the player to stay down and the player must hold E to revive. This was made so that the player can await ambulance to respond (roleplay). If there is no ambulance available the player must roleplay being “revived” by the people around him. Or the player can help theirselves if he’s alone.

It’s up to your imagination how you deal with it and those with high roleplay skill can utilize this script perfectly.

i disagree in most high roleplay servers it is a requirement to wait for ambulance not a choice and the penalty for not waiting is paying a higher respawn fee and losing certain configured items when choosing to respawn. if there is no EMS online they have to be picked up and taken to the hospital by friends or those around them in RP not everyone around you is going to have the skills to revive someone that isnt realistic. maybe if the revive option was only available when no EMS was online and still cost the player money i could see it being useful and not powergaming and easy to abuse and ruinging roleplay for others. im not saying the script is bad i love it i just think it will not fit in a strict roleplay server.

for example it may be a good idea to add a call for ems G button back. To give a notification when trying to hold E that ems is available and not revive them. or they still have the option to respawn for a fee and maybe if configured to do so lose their weapon and any other configured item.

I appreciate your view on the script.

Yes it can be abused, but those with high roleplay skill know that that is against the rules. I do think we’re on the same page. Difference is that this script is also useable by roleplay servers or non roleplay servers with a low playerbase. It’s made to be useable for many purposes, so it might have some limitations on the other end. :slight_smile:

Nice ideas though, we have a suggestions section on our community discord if you desire to share your ideas for us to develop.

im in SO MANY fivem discords if i joined youre discord to suggest and you dont implement them or arent thinking about making another version with these features thats kinda pointless. ill just keep lookout for a possible update of this on the forums.

can you make it plug and play for esx?

Hello!

Good question! In theory I can, but this is currently not featured. What is featured is the open source code in c_functions.lua and s_functions.lua. You can trigger events to export functions from ESX like revive and respawn.

I will continue to develop this script and (maybe) write them functions for ESX and QBcore. Though our list of things to do is quite long due to many requests, which means I have to ask you to bear with us.

1 Like

v2.0.0 Release

  • Medical System which is easy to configure, use and understand. Includes CABCDE/AVPU and more medical based logic. This system allows you to /treat wounded players and see their medical attributes. /myhealth shows medical attributes as well. You can enable or disable this additional system at your desire.
  • Customisable animations upon health states.
  • Injured mode.
  • Screen effects.
  • Information about the damage you have obtained.
  • Configurable admins. (Discord API / Ace permissions)
  • Commands to set states: /injured, /coma, /down, /die, /revive, /respawn, /treat, /myhealth etc…
  • /areviveall (Admin revive all)
  • /arespawnall (Admin respawn all)
  • Configurable coma/down types to your liking.
  • Cooldown systems.
  • Escrow protected.
  • Standalone.
  • And more…

It looks very realistic

1 Like

make it where only ems can heal you with a signal distress we can send out u cant rp with this if ur friend can revive u mid shootouts really u can just revive ur self…

1 Like

Hi! You can extend the revive or respawn time! This forces players to stay down to be revived by ems. :slight_smile: We provide a CPR script which works with this system. The distress call is just not something this includes, but it’s a nice idea!