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

Now i got the rader, when i’m out of car? How to i disable it

if u want disable UI when in pause menu.

client.lua, delete, RegisterNetEvent('ESX_HealthBAR-UI:updateStatus') and add this:

RegisterNetEvent('ESX_HealthBAR-UI:updateStatus')
AddEventHandler('ESX_HealthBAR-UI:updateStatus', function(Status)
if not IsPauseMenuActive() or not IsPauseMenuActive() then
    status = Status
    SendNUIMessage({
        action = "updateStatus",
        st = Status,
    })
end
end)

It needs more testing.

1 Like

Armor bar bugged , how to fix?

Hey it’s me again.
All of a sudden the food status bar stopped working, it just shows permanently empty
I’ll see to get my log for you

me too

@Bemods_V
@what_a_nothin

I had the same problem. You can try to change order in ESX_Healthbar-UI\html\ui.js

from

function updateStatus(status){
$(‘#boxHunger’).css(‘width’, status[0].percent+‘%’)
$(‘#boxThirst’).css(‘width’, status[1].percent+‘%’)
}

to

function updateStatus(status){
$(‘#boxHunger’).css(‘width’, status[1].percent+‘%’)
$(‘#boxThirst’).css(‘width’, status[2].percent+‘%’)
}

Currently it works well for me :smiley:

1 Like

thanks for the reply, i’ll try that out and hope it works :grin:

It only fill the abr but the bar dont go down
at least that happens to me

The food bar is empty and i cant find a way to fix it, even with

function updateStatus(status){
$(’#boxHunger’).css(‘width’, status[1].percent+’%’)
$(’#boxThirst’).css(‘width’, status[2].percent+’%’)
}

it still doesnt work

@what_a_nothin Do you have any scripts that add more options to status?
@akisz Have you tried to fill the bar in a different way? Drinking water or alcohol?

i have the normal status bar
but i have it disabled

i updated esx_status and then i replaced

function updateStatus(status){
$(’#boxHunger’).css(‘width’, status[0].percent+’%’)
$(’#boxThirst’).css(‘width’, status[1].percent+’%’)
}

to

function updateStatus(status){
$(’#boxHunger’).css(‘width’, status[1].percent+’%’)
$(’#boxThirst’).css(‘width’, status[2].percent+’%’)
}

and it worked perfectly, i also configured the esx_status so it wont shop the bars and its cool

Hello.

Every single bar works except food & water for some reason, can anyone help me?

I already know how to disable the bars at the top but that doesn’t matter.

image

The food & water bars do not work.

working great!
image
Food Water Booze Weed Stamina

1 Like

image

Thank you! Good release. Got it working great :ok_hand:

Yeah same

Anyone got it to hide succesfully until you’re in the game or when in pause menu? All those snippets didn’t work for me

2 Likes

did you have base? like esx base or vRP framework?

could you share? thanks

its doable, you would need a thc module too… i dont mind, but its not done yet… its working as it is… but i want to get rid of the multiples modules and make one to rule them all…
image