Remove Food & Thirst bar above the map

ESX FIVEM

Removing the food & Thirst bar is not working.

Screenshot:

Also add what you already tried so far.

Im using esx Custom UI @ https://github.com/wowpanda/esx_customui

Followed their tut to install it but if i hide some codes like

--TriggerEvent('esx_status:registerStatus', 'thirst', 1000000, '#0C98F1', --

but if i edit this and restart the server it just changes it back. someone know what im doing wrong?

3 Likes

Hello, this is a friendly reminder because this is your first time creating a topic (or it has been a while since your last topic) in this category.

Please note that most of the support is provided by the FiveM community on a voluntary basis. We ask you to be patient; there is no guarantee we have a solution to your problem(s). To avoid unnecessary/duplicate topics, please browse the forums before creating a topic.

To improve your chances of your issue(s) being solved, please provide as much information as possible about the issue(s) you are having. Also —whenever possible— please use the template given to you when creating a topic.

Thanks for keeping these forums tidy!
:mascot:

  • Disable the following line in (resources[essential]\es_extended\ui.html) Change
<div id="hud"></div>

to

<!--<div id="hud"></div>-->
  • Add TriggerEvent in (resources[esx]\esx_status\client\main.lua esx_status:load )
TriggerEvent('esx_customui:updateStatus', GetStatusData(true))

to look like 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('esx_customui:updateStatus', GetStatusData(true))
	    Citizen.Wait(Config.TickTime)
	  end
	end)

end)
  • Disabling Basic Needs Bars (resources[esx]\esx_basicneeds\client\main.lua esx_status:loaded )
AddEventHandler('esx_status:loaded', function(status)

	TriggerEvent('esx_status:registerStatus', 'hunger', 1000000, '#FFFF00', -- amarelo
	--TriggerEvent('esx_status:registerStatus', 'hunger', 1000000, '#CFAD0F', -- GOLD
		function(status)
			return false -- Change to true to show hunger bar | false to hide hunger bar
		end, function(status)
			status.remove(100)
		end
	)

	TriggerEvent('esx_status:registerStatus', 'thirst', 1000000, '#0099FF', -- azul
	--TriggerEvent('esx_status:registerStatus', 'thirst', 1000000, '#0C98F1', -- CYAN
		function(status)
			return false -- Change to true to show thirst bar | false to hide thirst bar
		end, function(status)
			status.remove(75)
		end
	)

original github

5 Likes

Hi yes i did all this but on server restarts the files changes back.

1 Like

are you using filezilla?

fleeK,

Yes im using filezilla

after u edit the files, did u allow filezilla to upload them on the server?

Yes afcourse, maybe i found the problem i edit when server is online then restart, maybe i need to put it offline first?

nah, something u did wrong but i cant say what
wait a bit, maybe one will know the reason

ask in the original ESX topic, this is for client side issues.

Please do not create new topics for support/questions related to existing resources.

Only ask questions or request support in the original resource topic, or on whatever site/page you got the resource from (for example: create an issue on the GitHub page of the resource that you downloaded).

That way the original resource creator will get a notification and be able to help properly. This also helps to reduce duplicate topics of the same issue, because everything will be inside the original topic, allowing everyone to see all issues and solutions in one place.

Thanks for keeping the forums tidy.
:mascot: