[Release] ESX - Food Water Drunk status bars under mini map! ( ESX ONLY )

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.

  1. start esx_status
  2. start esx_basicneeds
  3. start esx_optinalneeds
  4. start esx_fwd_ui

image


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.


18 Likes

second first

1 Like

I made an update to the script name :slight_smile:

After @Chip_W_Gaming gave me some :poop: about the name :stuck_out_tongue:

Was: esx_wfd_ui
Now: esx_fwd_ui

1 Like

Thanks for the release. You saved me some time to make it. One less thing to do. Much appreciated.

1 Like

Not a prob :blush:

1 Like

I’m having an issue. The leftmost bar (hunger) has somehow been swapped with the rightmost bar (drunk). Any ideas? I followed your instructions completely twice and still the same issue.

1 Like

i follow your step to remove hungry and thirst indicator above minimap, but still not working. Any solution?

Did you do that?

yes i did, basicneeds and optionalneeds already changed to “return false”.
another workaround, how can i change that position? my plan is change x and y position until it goes outside the player interface

Weird. Have you done any changes?

it fixed brother, i try again to replace all status, basicneeds, and optionalneeds

Alright :slight_smile:

1 Like

It seems to work fine but in the console it cant stop saying:

Uncaught TypeError: Cannor read property 'Percent' of undefined

And seems to lag a bit cuz of the error spam

Changed everything. Put the files where they belong and cleared cache. Start my server and then the settings i just made in the configs just resets. Any idea how to fix that?

how can i change drunk to stamina?

You ever figure it out?

I’m have the issue with the original hunger/thirst bars still above my mini map even though I changed the code.

my food bar is purple
drunk indicator orange
water blue

How do i fix this?

got the same problem you found solution?

no sorry