[Discontinued] Healthbar / UI - Now Supports vRP and ESX! (V 1.1)

I tried that, but it didnt work unfortunately.

brother, how could you disable the hud of life and armor that comes to you in esx to be able to add the one
if I add it one on top of another: S

if I deactivate optionalneeds, afterwards it won’t let me eat food / drink water …

1 Like

same af

thats weird because bread and water is from basicneeds. I think you can add most of the things you have in optionalneeds to basicneeds. For drug effects I recommend esx_drugeffects

Now used other bar :wink: .

link to download? xD

Its literally the 3rd thing down on the post…

Actually i found that to be what was breaking this script. It was registering the health bar as my drug effects bar.

Does anyone have a version of this that does not require esx or vRP? So just FX (Just Health and Armor)

Has anyone implemented an armor box that wouldn’t mind sharing?!

If you look further up my download is there. I have stopped working on it but the armor bar is there

Got a question, does your version hides while the player is not ready to play, so I could use it with this script?
The original version always stay on top of the loading screen, I still couldn’t figure out how to hide it.

No it does not hide sorry

I got it to hide on the pause menu, but I don’t know what variable to change so it at least wait until the player has loaded for it to become visible.

This is the snippet that I’ve added:

Citizen.CreateThread(function()
     while true do
 		Citizen.Wait()
         if IsPlayerSwitchInProgress() or IsPauseMenuActive() then
             TriggerEvent('ui:toggle',false)
         else
             TriggerEvent('ui:toggle',true)
         end
     end
end)

Tried to use IsPlayerSwitchInProgress() but it didn’t work, neither showed any errors on the console. Got any feedback?

i have this installed but when i get notifications of any kind like when someone gets paid from their job some of the text is being cut off like this, i cant seem to find a solution anywhere so can anyone help ?

image

Someone found out how to put health % text on the bars ?

Update Coming Soon! :wink:

Next update will include
  • Config / If you want % on your bars. So you know how much you have left
  • Extra Bar with Armor
  • And som other small changes.
5 Likes

Can you also make it hide while the user is loading into the game and/or while the pause menu is active?
Thanks for the awesome job so far!

it’s already do that.