Configuring elements
Open html/app.js. You can add all the new statuses you use if you configured them corectly with esx_status then the hud figures the values itself !
elements: {
'health':{
progress: null,
name: 'hp',
color: '#ef4444',
icon: 'fa-solid fa-heart',
show: true,
value: 0.5,
},
'armor':{
progress: null,
name: 'ar',
color: '#3b82f6',
icon: 'fa-solid fa-shield',
show: true,
value: 1.0,
displayFrom: 0.01, // You can set display from value the status will be hidden
},
}
I am having one minor use with hiding the hud while in other menus.
AddEventHandler("d2d-closenui", function()
SendNUIMessage({
ui = 'show',
show = false,
})
shownui = false
end)```
I added the above to trigger while in other menus but the hud keeps flickering, any ideas?