Hello, this is my first hud. If you have any error with the hud just go back to this post and I will help you as quickly as I can
Preview:
(https://streamable.com/f5a94n)
Download: https://github.com/Tevichu/tevi_hud/
Go into esx_status/client/main.lua
RegisterNetEvent('esx_status:load')
AddEventHandler('esx_status:load', function(status)
for i=1, #Status, 1 do
for j=1, #status, 1 do
if Status[i].name == status[j].name then
Status[i].set(status[j].val)
end
end
end
Citizen.CreateThread(function()
while true do
for i=1, #Status, 1 do
Status[i].onTick()
end
SendNUIMessage({
update = true,
status = GetStatusData()
})
TriggerEvent('esx_status:onTick', GetStatusData(true))
Citizen.Wait(Config.TickTime)
end
end)
end)
And Replace it with this
RegisterNetEvent('esx_status:load')
AddEventHandler('esx_status:load', function(status)
for i=1, #Status, 1 do
for j=1, #status, 1 do
if Status[i].name == status[j].name then
Status[i].set(status[j].val)
end
end
end
Citizen.CreateThread(function()
while true do
for i=1, #Status, 1 do
Status[i].onTick()
end
SendNUIMessage({
update = true,
status = GetStatusData()
})
TriggerEvent('tevi_hud:update', GetStatusData(true))
Citizen.Wait(Config.TickTime)
end
end)
end)
In case of not working you can try to use this esx_status esx_status.7z (14.1 KB)