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

thanks buddy got it working now :smiley:

Anyone fixed the billing part? Hmm.

Has anyone have a working resource of this?

Where did you find that different version of mythic_hospital?

Hello Dutchy30

I tryied to do what you said. i added the events for stop bleed and reset limbs. in the client/main.lua under the event esx_ambulance:heal

and in server/main.lua under the event esx_ambulancejob:revive

i upload photo of my codes.

but im bleeding. and when i do revive i still keep bleeding so did i do anything wrong here?

Montana out.mythic hospital fejl

Mythic removed he’s repositories, does anyone know why?

Did you get this sorted?

doesn’t heal and doesn’t get up from bed how can i solve this problem

I know this is a stupid question but is there a way to disable the injury system, so we can just keep the hospital without any of the Injuries?


i’m always getting this error, does anyone nows how to fix it?

where are all the download links ? also for mythic progressbar etc?

1 Как это исправить помогите Пожалуйста!!!
2 How to fix this please help!!!

1 Как это исправить помогите Пожалуйста!!!
2 How to fix this please help!!!

Can anyone help me fix this plugin and make it work on my server ?

before I didn’t make any changes, this is what happened on my first try
I checked in and the guy was just lying on the bed and i cant get out
If someone carries me and drops me somewhere I stay in air

I tried changing somethings after reading some replies here and nothing happens when I press E to check in at the counter

RegisterServerEvent(‘mythic_hospital:server:EnteredBed’)
AddEventHandler(‘mythic_hospital:server:EnteredBed’, function()
local src = source
local injuries = GetCharsInjuries(src)

local totalBill = injuryBasePrice

if injuries ~= nil then
    for k, v in pairs(injuries.limbs) do
        if v.isDamaged then
            totalBill = totalBill + (injuryBasePrice * v.severity)
        end
    end

    if injuries.isBleeding > 0 then
        totalBill = totalBill + (injuryBasePrice * injuries.isBleeding)
    end
end

-- YOU NEED TO IMPLEMENT YOUR FRAMEWORKS BILLING HERE
local xPlayer = ESX.GetPlayerFromId(src)
xPlayer.removeAccountMoney(‘bank’, amount)
TriggerClientEvent('mythic_notify:client:SendAlert', source, { type = 'success', text = 'U bent gefactureerd voor €' .. totalBill ..'.' })
TriggerClientEvent('mythic_hospital:client:FinishServices', src)

end)

I have a problem, when I’m lying on the bed, my friend sees me lying in front of the Check in
:smile: :smile:

It didn’t help what to do!!!

This is my esx_ambulancejob and mythic-hospital files. you have to translate it, into english if u want that. The language is now into Dutch. And you need the gabz pilbox map. or you have to adjust the coordinates.