Request a solution to fix the female character’s health is not 100%
Have you looked into this:
I’ll give it a try, thanks
Did you ever get this working?
AddEventHandler("playerSpawned", function()
local ped = GetPlayerPed(-1)
if GetPedMaxHealth(ped) ~= 200 and not IsEntityDead(ped) then
SetPedMaxHealth(ped, 200)
SetEntityHealth(ped, GetEntityHealth(ped) + 25)
end
end)
Add this in any client script.
So, I found this somewhere around the forums, and I have tried adding this to qb-smallresources and doesn’t seem to do anything? Do I need to add it elsewhere or?
I also came up with this while testing, but still does nothing for us:
local ped = GetPlayerPed(-1)
local male = IsPedMale(ped)
if not male then
if GetPedMaxHealth(ped) ~= 200 and not IsEntityDead(ped) then
SetPedMaxHealth(ped, 200)
SetEntityHealth(ped, GetEntityHealth(ped) + 25)
end
end