[Release] SmartObservations - /setobs /obs - Medical Observations, External Sounds! [C#]

London Studios

London Studios - Update

Since forming London Studios in April 2020 we’ve created a number of high quality and premium resources for the FiveM project, focusing on the emergency services and aiming to bring your server to the next level.

Although we made a number of free resources such as this one in the first year, we’ve now switched to creating paid content, keeping them constantly updated and working along with providing the best possible support to our customers.

Our most popular resources now include Smart Fires, Police Grappler and Smart Hose.

With thousands of happy customers we are confident you’ll love our resources and our active support team are on hand to help if you have any questions!

Our store: https://store.londonstudios.net/forum

Therefore, this resource is now likely out of date and is no longer supported by us. The full source code is available should you wish to make any changes. All of our paid resources however are constantly updated and we invite you to take a look!

SmartObservations - London Studios


SmartObservations is a FiveM resource coded in C# which enhances the experience of taking and working with medical observations (eg, Heart Rate, Blood Pressure). Not only that, but also ranking observations based on risk, and playing the sound accordingly to the paramedic/medical team on scene. This resource has been made by London Studios, we have created other plugins including TaserFramework, SearchHandler and more!

This resource provides the ability to easily set your observations, ensuring they are in the allowed values and notifying you if they are high or medium risk - the plugin will also know if you are in a cardiac arrest.

Medical teams on scene will receive updates if your observations change, allowing for realistic roleplay!

SmartObservations

Usage

/setobs - This opens up the menu, allowing you to set your observations.
/obs - This takes the observations of the nearest player (they must have set their obs for it to work), this will then notify you if their observations change, unless you disable notifications.
/obsupdates - This will enable or disable observation updates from all players to yourself. If you want to disable just one player, open up their observations menu and press “Disable Notifications”. This will stop tracking.

The plugin will prompt you if an observation is high or medium risk, and play sounds for the medical team on scene. It is important to press “Reset Observations” after you finish a call, to disable notifications for those that previously dealt with you.

Initially, as a paramedic/medical team arrives on scene, although you might have set all the observations - they will not appear for them. To enhance realism, the team need to press on the relevant observations to make them appear - if you have not set them, you’ll receive a notification asking you to change it.

The plugin also filters out invalid observations, such as a blood pressure which is incorrect, or if you try to set your heart rate to text instead of numbers. All of these functions aim to enhance roleplay.

Installation

Please download the resource on GitHub here.

  1. Create a new resource folder on your server.
  2. Add the contents of “resource” inside it. This includes:
    “Client.net.dll”, “Server.net.dll”, “NativeUI.dll”, “fxmanifest.lua”, “html”, “stream”.
  3. In server.cfg, “ensure” SmartObservations, to make it load with your server startup.

Source Code

Please find the source code in the “src” folder. Please ensure you follow the licence in “LICENCE.md”.

Feedback

We appreciate feedback, bugs and suggestions related to SmartObservations and future plugins. We hope you enjoy using the resource and look forward to hearing from people!

9 Likes

Now this, is awesome, I can’t wait to try it out!

Hi,

Thanks for your comments.

Best wishes,
London Studios

Hello excellent script to translate it into French

Hi,

Thanks for your comments.

Feel free to make those changes whilst referring to the LICENCE.md file on GitHub.

Best wishes,
London Studios

This script would be 100 times better if you added another section where you have to press on Blood Pressure for example then it comes up with all the different ways of getting the obeservations for example Place pulseox on finger then it gives you nothing back as you’ve pressed on the wrong way of getting that observation.

Example:

You have a patient male who is hyperthermic and you need take his tempreture and you press on it and then you press on the wrong way of getting the obeservation it doesn’t give you anything.

I will write up the ways of doing it now.

Heart Rate & SPo2 - PulseOximeter
Blood Pressure - Blood Pressure Cuff
Temp - Tympanic Thermometer
Blood Pressure - Glucose Meter
Resp Rate - Measure amount of breaths
ECG - Applies ECG
Lung Sound - Places stethoscope on chest

The reason I suggest this is because people can just press on them all and get all the obseservations with little skill

1 Like

@JWorrall123

Hi,

Thank you for your comments regarding the plugin, I take it you like it now and that these are ways to make it better as you say.

In regards to the suggestions given, I do agree that this would make the plugin more realistic to a far extent however I am unsure if these changes would prove too restrictive in using the plugin, for those inexperienced medically.

My proposal is, if this is wanted by more people, I am happy to introduce a configuration file which would enable or disable this extra layer of functionality for all players on the server, requiring you to actually “take” the observations, by specifying the action you would take and then the plugin deciding if it should show you the observation.

Please let me know your thoughts on this.

Best wishes,
London Studios

Please see above response, unsure why it hasn’t tagged you.

Best wishes,
London Studios.

A MedAlert field would be nice (ideally to simplify, give them a checkbox of issues such as Diabetic, Latex Allergy, Morphine Allergy, etc…) and for the observations side of it, a choice to check for med alert bracelet

@TTVResqDiver1317
Hi,

Thanks for the feedback, I will see what I can do in regards to your suggestion.

Best wishes,
London Studios.

1 Like

This is cool. I would like too see a config file. so u can change triggers… for this maybe if u dont like /obs or /setobs you can do different things for triggers or maybe even keys… a config to adjust the sound u get maybe volume level and config for menu options choose which ones u want. maybe change some of the text so u can put ur dpt logo on there. and a config to swap celsius fahrenheit – Also slight bug when u scrolls it jumps down the list fast somtimes hard to set things. Over all this is nice.

Starting testing this with a couple of my EMS and had a couple more thoughts. It would be nice if we could get a config file that lets us change it from Celsius to Fahrenheit. Would also be nice if we could use the same config to turn off certain features. As someone who is an IRL medic, I love all the options in there, but at the same time, a lot of people on RP servers are not as medically capable and have no idea what to put in many of the fields so if we can have to option in a config to dumb it down some, that would be awesome.

Also, being able to move the location of the menu would be helpful as well because right now it comes up behind our chat window.

@TTVResqDiver1317
Hi,

Thank you for your comments.

Coincidentally I will be adding a config file very soon and therefore you will have the ability to change it from Celsius to Fahrenheit. You will also be able to disable certain features hopefully.

If you have any further ideas for the update, please let us know.

Best wishes,
London Studios.

1 Like

Another suggestion:
WHen in the boxes to enter items like respiration, pulse, etc… have in the title area samples. IE., for pulse, have “0-35=high risk | 35-50=Medium Risk | 51-90=Normal | 91-110 = Medium Risk | 110-200=High Risk” (using whatever numbers you have coded in, my bpms were just for example). This way, someone who has no clue what would be a good or bad pulse will have a reference to go from when they enter it

Do you plan on updating this still?

Hi,

I still intend on updating this yes,

Best wishes,
London Studios

Hi,

Thanks for the suggestion.

Best wishes,
London Studios

Hi,

Thanks for the suggestion, it will be taken into consideration for the next update.

Best wishes,
London Studios

1 Like

Hi there,

Awesome script.
I wanted to make some changes regarding the script features.
You’ve a reference in MenuHandler.CS called GTA.
Cant figure out what this reference is or where I could find it so I can add it.

You should add an option to check for BAC and drugs.