did you disable default bars ? Maybe thats the problem.
We had an older Version of esx_status that prevented the food and water from showing, you might want to update it GitHub - esx-framework/esx_status: FXServer ESX Status
I created a Pull Request to add a PlayerID and Vehicle Fuel (if in a vehicle). Should work 100% tested it on my Server a few times.
Hunger and thirst dont have values.
I put the command we have to change and I downloaded the last version of esx_status.
What should I do?
an excellent hud!
NOT COPY PASTE MY āSOLUTIONā !!! LOOK AND MAKE xD
Good evening or good morning, for people with the worry of food and thirst that doesnāt show up, Iāve fixed the problem created by the configuration of an old HUD.
I search the solution for disable the default bar with this configurationā¦
EDIT: I put transparency on the default bars xD Itās not a great solution with scrappy code but itās work xD
Go to: esx_basicneeds\client\main.lua line: 43 and change return false in return true Like this:
Old:
AddEventHandler('esx_status:loaded', function(status)
TriggerEvent('esx_status:registerStatus', 'hunger', 1000000, '#CFAD0F', function(status)
return false <-- HERE
end, function(status)
status.remove(75)
end)
TriggerEvent('esx_status:registerStatus', 'thirst', 1000000, '#0C98F1', function(status)
return false <-- HERE
end, function(status)
status.remove(75)
end)
TO:
AddEventHandler('esx_status:loaded', function(status)
TriggerEvent('esx_status:registerStatus', 'hunger', 1000000, '#00000000', <-- HERE FOR TRANSPARENCY function(status)
return true <-- HERE
end, function(status)
status.remove(75)
end)
TriggerEvent('esx_status:registerStatus', 'thirst', 1000000, '#00000000',<-- HERE FOR TRANSPARENCY function(status)
return true <-- HERE
end, function(status)
status.remove(75)
end)
Nice hud!
None of the above are making my food and water work, if anyone could help id really appreciate it, using latest esx_status and esx_basicneeds, im tired of trew hud and its 0.7 tick time
I did everything that you told us, but canāt make food and water work help please
Hi bro, do you know how I can fix the food and drink? have you found a solution?
Tried everything but hunger and thirst dont work, im using extendedmode and the latest basicneeds and status. i set the register status to true and changed the esx_status:onTick ā Kl_Hud:onTick and still no solution ;/ any suggestions??
totirapenig
Hey, mind changing the default āhideminimapā to false so I can merge it into txAdmin?
IDK why this was overruled:
The same
Hey guys,
I got it to work, at least for me it did. I had to change a little bit of code in the client.lua file inside the Kl_HudV2 plugin. Change the following, and it should be working:
FROM:
-- Principal Event
RegisterNetEvent("Kl_Hud:updateStatus") -- Change updateStatus to onTick
AddEventHandler("Kl_Hud:updateStatus", function(status) -- Change updateStatus to onTick
TriggerEvent('esx_status:getStatus', 'hunger', function(status)
food = status.val / 10000
end)
TriggerEvent('esx_status:getStatus', 'thirst', function(status)
thirst = status.val / 10000
end)
if (Config['Stress']) then
TriggerEvent('esx_status:getStatus', 'stress', function(status)
stress = status.val / 10000
end)
end
end)
-- End Principal Event
TO:
-- Principal Event
RegisterNetEvent("Kl_Hud:onTick") -- CHANGED LINE
AddEventHandler("Kl_Hud:onTick", function(status) -- CHANGED LINE
TriggerEvent('esx_status:getStatus', 'hunger', function(status)
food = status.val / 10000
end)
TriggerEvent('esx_status:getStatus', 'thirst', function(status)
thirst = status.val / 10000
end)
if (Config['Stress']) then
TriggerEvent('esx_status:getStatus', 'stress', function(status)
stress = status.val / 10000
end)
end
end)
-- End Principal Event
DONāT FORGET TO CHANGE ESX_STATUS (client/main.lua) LINE 71 TO:
TriggerEvent('Kl_Hud:onTick', GetStatusData(true))
in which file?
that doesnt work to meā¦ The best of all I havenāt errors
did you solve it?
Which file allows me to set where the bar sits???