Here is my edit release of [Healthbar / UI] … I give you the ability to see your | Food / Water / Drunk | Status bars under your mini map! This is only going to be a release for ESX I will not update or make it work for VRP.
Download: esx_fwd_ui.zip (1.6 KB)
UPDATE: 10-27-2020
Fixed using older versions of ESX_Staus, ESX_Basicneeds, ESX_Optinalneeds
Make the below edits then add to your start config!
Make sure your server config is in this order.
- start esx_status
- start esx_basicneeds
- start esx_optinalneeds
- start esx_fwd_ui
To make this work you must make the following edit !!!
Edit - esx_status / client / main.lua
Original
TriggerEvent('esx_status:onTick', GetStatusData(true))
Citizen.Wait(Config.TickTime)
end
Update to
--TriggerEvent('esx_status:onTick', GetStatusData(true))
TriggerEvent('ESX_FWD_UI:updateStatus', GetStatusData(true))
Citizen.Wait(Config.TickTime)
end
To remove the Basic & Optional needs bars above the mini map do the following.
Edit - esx_basicneeds / client / main.lua
Original
TriggerEvent('esx_status:registerStatus', 'hunger', 1000000, '#CFAD0F', function(status)
return true
end, function(status)
status.remove(100)
end)
TriggerEvent('esx_status:registerStatus', 'thirst', 1000000, '#0C98F1', function(status)
return true
end, function(status)
status.remove(75)
end)
Update to
TriggerEvent('esx_status:registerStatus', 'hunger', 1000000, '#CFAD0F', function(status)
return false
end, function(status)
status.remove(100)
end)
TriggerEvent('esx_status:registerStatus', 'thirst', 1000000, '#0C98F1', function(status)
return false
end, function(status)
status.remove(75)
end)
Edit - esx_optionalneeds / client / main.lua
Original
TriggerEvent('esx_status:registerStatus', 'drunk', 0, '#8F15A5',
function(status)
if status.val > 0 then
return true
else
return false
end
end,
function(status)
status.remove(1500)
end
)
Update to
TriggerEvent('esx_status:registerStatus', 'drunk', 0, '#8F15A5',
function(status)
if status.val > 0 then
return false
else
return false
end
end,
function(status)
status.remove(1500)
end
)
Permission form TerbSEC
I used the code that was already included in TerbSEC release of [Healthbar / UI]. I give all code credits to the original creator.