Sup! I wrote this script for our community ‘OurStory’ today and decided to release it to give back to the community.
What is it?
It is a usable Morphine Injector that will heal the person who uses it very slowly for 30 minutes. (It heals 1 health every second, which is 60 health per minute.) It will also make them run slightly faster for this time period too. (I don’t recommend setting the movement speed higher because it can created bugs.)
It comes with a unique animation, prop, sound effects and mythic notifications. If you use more than 1 injector, you will still only heal at the normal rate.
Requirements
ESX
Optional
InteractSound
MythicNotify
ESX Status
Install Instructions:
Add an item called ‘Morphine’ to your items database (SQL file provided)
If you have Mythic Notify, uncomment out lines 42, 71 and 78 in client.lua
If you have InteractSounds, uncomment out lines 47 to 54 in client.lua
If you are using food and hunger from ESX Status / ESX BasicNeeds, uncomment out line 13 and 14 in server.lua
Download
OurStory_Morphine.zip (2.5 KB)
Note: If either InteractSound or MythicNotify do not work for you, you need to seek help on their threads. It is possible that their callbacks have changed since I downloaded them. Also, you need to add a way for players to get this in-game. (Add it to a shop or as a reward, etc.)
Screenshot: