[Dev-Resource] Mythic Hospital (Body Part Damage & Healing)

if i use any of the items am i suppose to stop bleeding or get healed? Cause currently i can spam use gauze and other items but i never stop bleeding out

Wh-what?

If you’re referring to the 2.0 dev branch, that using a different version of my progressbar was fixed just now.

No, and that’s by design. Med Kits will only reduce any limb damage down to severity level 1, and guaze will only reduce bleeding by 1 until you’re at bleed level 1.

Again, that’s by design. Intention was to not allow people to entirely heal themselves without going to hospital (Though they can heal their full HP with items, but the actual limb damage & bleed only treatable at hospital).

1 Like

AHHH thank you ! i thought mines was still broken xD. Great script brother love all your Mythic work!

More fun fixes being worked on, hoping to have this all done by either tonight or tomorrow. Should be a whole lot more stable & functional with this plus have a few new features. Including 110% tested & working revive from being dead ;p

I have some ideas along with a few issues that maybe you can look into.

Features:
Maybe a little fade in and out of like 5-6 seconds when checking in? Isn’t needed that much but might be a little better for immersion or general loading.

Bugs:
It seems when you check in or lie in a bed with /bed this issue happens

Also when you are lying when you check in, nobody can see you in the bed. They can only see you when you are leaving the bed after being treated.

Won’t be as long, but will be adding it onto there once things are getting polished.

Sometimes, I seriously hate attaching this hospital part to this resource…

Anyways, if you change out the SetBedCam function with the code below, does it happen to fix that?

NOTE: This will revive players if they’re dead, so yeah if you’re wanting to control that through another script remove that part.

function SetBedCam()
    local player = PlayerPedId()

	if IsPedDeadOrDying(player) then
		local playerPos = GetEntityCoords(player, true)
		NetworkResurrectLocalPlayer(playerPos, true, true, false)
    end
    
    bedObject = GetClosestObjectOfType(bedOccupyingData.x, bedOccupyingData.y, bedOccupyingData.z, 1.0, bedOccupyingData.model, false, false, false)
    FreezeEntityPosition(bedObject, true)
    
    SetEntityCoords(player, bedOccupyingData.x, bedOccupyingData.y, bedOccupyingData.z)
    SetEntityInvincible(PlayerPedId(), true)

    RequestAnimDict(inBedDict)
    while not HasAnimDictLoaded(inBedDict) do
        Citizen.Wait(0)
    end

    TaskPlayAnim(player, inBedDict , inBedAnim ,8.0, -8.0, -1, 1, 0, false, false, false )
    SetEntityHeading(player, bedOccupyingData.h + 180)

    cam = CreateCam("DEFAULT_SCRIPTED_CAMERA", 1)
    SetCamActive(cam, true)
    RenderScriptCams(true, false, 1, true, true)
    AttachCamToPedBone(cam, player, 31085, 0, 0, 1.0 , true)
    SetCamFov(cam, 90.0)
    SetCamRot(cam, -90.0, 0.0, GetEntityHeading(player) + 180, true)

    Citizen.Wait(1000)
    FreezeEntityPosition(player, true)
end

Extra Note: Am aware that on other clients you’re sort of in the bed, will fine-tune the placement later just wanna make sure it works and only thing I have available for testing is another PC on my local network.

@Alzar Perhaps no one had seen this before but after the latest release version I seem to keep holding the props that are used for the checkin.

Is that a known bug or something that could use a fix in the script ?

good ah and some way to lower the sensitivity of character damage? For example, a car touches me and I have to go to the hospital, I would like to be afraid to have more harm to have to do it

ESX Version Updated with recent Base changes

1 Like

Check if you have mythic progressbar started in your server cfg

Are you using notepad to code?

Not only notepad, notepad++, visual studios

how to change body damage and weapon damage

How the fainting timer went down when you are bleeding. It takes me 1/4 of a bar every time I pass out? I faint every 2 seconds … look for the folder but no results … could you help me? i am using vrp

how can i add more check-in locations ?

How to Stop BlackOut thing compleately ???

can anybody help me?? I use esx.
when I’m bleeding or bleeding my screen flickers when I run every 5 seconds and my life bar goes down.
When I stand without moving my screen flickers every 20 seconds and my life goes down until I die in both cases.
How can I do to increase that timer? not to die fast ?? Every time my screen flickers or goes out and my life goes down until I die. can anyone help? I changed all the timers and none worked for me.
please help

Look in the config.lua

--[[

    This is how many seconds is taken away from the bleed tick rate if the player is walking, jogging, or sprinting

]]

Config.BleedMovementTick = 10

Config.BleedMovementAdvance = 3



--[[ 

    How Many Bleed Ticks You Want To Occur Before A Screen Fade Happens

]]

Config.FadeOutTimer = 2


modify the numbers you said increase more and the same thing happens when I’m walking or standing and I’m bleeding this happens to me until I die …

How do you have your modified to increase the timer of each screen blackout or faint?

so how do we make the items in the resource, like the medicine, etc. work? I don’t see any sort of walkthrough on here on how to do that.