…why
How to Ban
just press esc several times it will fix.
Hunger bar not working. Any idea how to fix it?
Any way to disable to default health bar?
Looking good man! Mind sharing? If not thats okay.
Also looking a way to disable the damn default healthbar.
Sure i dont mind, its just a little edit in the ui.css compare it with yours or replace it
ui.css (2.3 KB)
Thanks man. The last bottom bar, is it soppused to be voice? If so, its not working for me.
– For anyone; my healthbar doesnt seem to go above 50, any ideas?
Yeah its an edit of this one, So if you want Voice u must download this:
https://forum.cfx.re/uploads/short-url/j4CcUa6bzmn5ZZ2BNzKqbammgdk.rar
He had change stamina to voice, and change it to a drunk bar.
So my problem is basically when I use any hunger+thirst resource and set it up the hunger and thirst bars become one so the hunger bar is empty and the thirst bar is the one working, when I drink or eat it get’s filled up. Any idea how to fix this?
Beautiful, thank you very much:)
Im trying the hide the bar with a key bind or with a menu but it didnt work … maybe one of you have the solution plz ?
Thank you.
Its nearly done for you… Go into client.lua, and look at the NUI - show thing.
Make an keypress, that sets that to false/true
yep i’ve try with this :
RegisterNetEvent('ESX_HealthBAR:toggle')
AddEventHandler('ESX_HealthBAR:toggle', function(show)
SendNUIMessage({action = "toggle", show = show})
end)
i ve make a command in server file for /togglehud on/off but it dont work
i can see the bar disapear but it come 1 sec later ^^
TriggerEvent('es:addCommand', 'togglehud', function(source, args)
if not args then
TriggerClientEvent('chatMessage', source, "[SYNTAX]", {255, 0, 0}, "/togglehud [on/off]")
else
local a = tostring(args[1])
if a == "off" then
TriggerClientEvent('ESX_HealthBAR:toggle', source,false)
elseif a == "on" then
TriggerClientEvent('ESX_HealthBAR:toggle', source,true)
else
TriggerClientEvent('chatMessage', source, "[SYNTAX]", {255, 0, 0}, "/togglehud [on/off]")
end
end
end, {help = "Toggles the hud on and off"})
anyway, i will continue later ^^ thx again
Action = toggle? Have you made changes is js? Ye it disapear and comes again, because show = IsPauseMenuActive()
is there
yep i write that in .js :
if (event.data.action == "toggle"){
if (event.data.show){
$('#.container').show();
} else{
$('#.container').hide();
}
}
i’ve try with #.container, // #.ui // But nothing happen ^^
And if i remove show = IsPauseMenuActive()
nothing happen too … i m sooo noob
Go into client and remove show = IsPauseMenuActive()
and then replace this with the event that you made.
RegisterNetEvent('ESX_HealthBAR:toggle')
AddEventHandler('ESX_HealthBAR:toggle', function(show)
SendNUIMessage({show = show})
end)
Im not home atm, so you can make this solution first, and then i can make an better when im home.
nice, i will try it soon ! Thank you very much !
Tried this resource out and at the start worked great then all of a sudden the hunger bar just went blank and when i would eat food the blue water bar would change and if did not eat or drink if would not take health away to kill you so don’t know what went wrong with it.
Does anyone know how to fix the bars not showing or flimmering in the pausemenu?
This script is not going well together with the new update of mysql-async. Thats why. Try an older version of mysql-async
Ill give that a try nice one buddy and the issue your having with the bars not showing in pause menu take a look in es_extended and look for the text about showing menu in pause menu and see it its false or true hopefully that help’s.