qbcore-framework / qb-hud

Player HUD System
45 stars 209 forks source link

[BUG] #153

Closed DNDdjay closed 1 year ago

DNDdjay commented 2 years ago

Describe the bug females dont have fully health i know how to fix it on esx but not on qb

in esx i have too use this

Citizen.CreateThread(function() while true do Citizen.Wait(1) if GetEntityMaxHealth(GetPlayerPed(-1)) ~= 200 then SetEntityMaxHealth(GetPlayerPed(-1), 200) SetEntityHealth(GetPlayerPed(-1), 200) end

but its is not working in qb

IMG_20220711_074335

AlluerDuke commented 2 years ago

the same

Jamie9192 commented 1 year ago

try: CreateThread(function() maxHealth = GetEntityMaxHealth(PlayerPedId()) SetEntityHealth(PlayerPedId(), maxHealth) end

untested, but im sure that should work

dollar-src commented 1 year ago

Citizen.CreateThread(function() while true do Citizen.Wait(1) if GetEntityMaxHealth(GetPlayerPed(-1)) ~= 200 then SetEntityMaxHealth(GetPlayerPed(-1), 200) SetEntityHealth(GetPlayerPed(-1), 200) end end end) it works probably

DNDdjay commented 1 year ago

Citizen.CreateThread(function() while true do Citizen.Wait(1) if GetEntityMaxHealth(GetPlayerPed(-1)) ~= 200 then SetEntityMaxHealth(GetPlayerPed(-1), 200) SetEntityHealth(GetPlayerPed(-1), 200) end end end) it works probably

thx its working now

dollar-src commented 1 year ago

no problem