i tried to instal but i got a error: esx ladderhud/client.lua:31: attempt to index a nil value (field ‘?’)
can someone help me pls
esx server btw
Is working with Ubuntu 16.04 perfect but not with Ubuntu 18.04 (same files just copy paste them from the vps1 to my second vps ) !!! The usage of the bars have merged to the water bar and the food bar is black !!! Any fix plz?
I found a fix for you guys. Instead of replacing the code:
TriggerEvent('esx_status:onTick', GetStatusData(true))
with the code implemented by the owner of the script:
TriggerEvent('esx_ladderhud:updateBasics', GetStatusData(true))
YOU HAVE TO IMPLEMENT BOTH LINES OF CODE SO THE END RESULT LOOKS LIKE THIS
TriggerEvent('esx_status:onTick', GetStatusData(true))
TriggerEvent('esx_ladderhud:updateBasics', GetStatusData(true))
Citizen.Wait(Config.TickTime)
Why? Because when you overwrite the onTick TriggerEvent, the script doesn’t get any status info about your food and water stats. I just added that line of code without replacing and got it working.
EDIT: link down because it was broken
Another edit: this is my first reply to a thread so I had to edit this comment like 8 times.
Thank for your first post
Try changing the static hunger/thirst lookup for something which will extract the correct information from the table regardless of its position within the table.
i.e. delete
hunger, thirst = basics[2].percent, basics[3].percent
and replace it with something like
for i=1, #basics, 1 do
if basics[i].name == 'hunger' then
hunger = basics[i].percent
elseif basics[i].name == 'thirst' then
thirst = basics[i].percent
end
end
Does anyone know how to lock this to the aspect ratio. So it will be in the same place no matter the aspect ratio.
Figured it out.
good
I have a problem, the script works well with the water bar but the food bar,
Someone knows how to fix it or someone who has the script, so we can also share the main status of esx_status and esx_basicneeds
thank you very much to everyone and to the creator of this resource
If you want the script to work properly, you must have:
esx_status
esx_basicneeds
esx_ladderhud
ye i installed the script its a very good basic needs hud but one of my bars doesnt work ye hunger does nothing
i found fix it was mentioned before by @DankerLlama you need to replace in client.lua “ladderhud” i.e. delete
hunger, thirst = basics[2].percent, basics[3].percent
and replace it with something like
for i=1, #basics, 1 do
if basics[i].name == 'hunger' then
hunger = basics[i].percent
elseif basics[i].name == 'thirst' then
thirst = basics[i].percent
end
end
And then replace in esx_status client.lua code from github and you are now officialy working
If its not help then add in esx_status by @Nigol and YOU HAVE TO IMPLEMENT BOTH LINES OF CODE SO THE END RESULT LOOKS LIKE THIS
TriggerEvent('esx_status:onTick', GetStatusData(true))
TriggerEvent('esx_ladderhud:updateBasics', GetStatusData(true))
Citizen.Wait(Config.TickTime)
Very nice! Anyway we can get matching bars and icons like for health under the map?
ye i’ve saw that solution… Happens that my basicneeds script must be different from everyone. i got +20 eat/drink items and dont have this line at my server/main.lua
hunger, thirst = basics[2].percent, basics[3].percent
ill show and example of events that are triggered at my basicneeds/server/main.lua
apart of register useable items i got a event trigger for heal nothing more
Sorry my fault i was too tired its esx_ladder hud check my post up i edited its in client.lua “ladderhud” the line you must delete and then change.
Great mod! I made some changes so I could use it for all status. Looks like this now:
This looks beautiful. I even like the google maps things… I want that… but have it be WAZE lol
can someone try if this works?
i added all 3 folders you need to have it working
did not have time to test it out, can someone try?
No it does not work for me