[ESX] Pee/Pooping Script // esx_basicneeds addon

I was trying to do it, but when I did it, menu couldnt open up , all in all, thank you very much…

My player doesn’t stop shitting when walkng around.

I did all what you said in the intro and comments, it actually works but the bars are NOT going down when you pee and poop… sad

Good imagination. Too bad you use it for something so disgusting. I know you can do better than that.

hi with the last fivem artefact’s 2949

when a person is peeing or pooing, all the other server players who are out of the way also pee and poo someone can help me correct this it is quite urgent thank you

it may come from a command on the viewing distance or from one sync

@qalle

hi again a other problem when a drink only

a water for example the other player don’t see animation …

Thanks, mine looks fine working fine, this is my code on esx_personmeny

function OpenCivilianActionsMenu()

  ESX.UI.Menu.CloseAll()

  ESX.UI.Menu.Open(
	'default', GetCurrentResourceName(), 'id_card_menu',
	{
		title    = 'ID menu',
		elements = {
			{label = 'Pis y Caca', value = 'needs_menu'},
			{label = 'Ver Documento', value = 'checkID'},
			{label = 'Entregar Documento', value = 'showID'},
			{label = 'Ver Licencia de Conducir', value = 'checkDriver'},
			{label = 'Entregar Licencia de Conducir', value = 'showDriver'},
			{label = 'Ver Licencia de Armas', value = 'checkFirearms'},
			{label = 'Entregar Licencia de Armas', value = 'showFirearms'},
		}
	},
	function(data, menu)
			if data.current.value == 'checkFirearms' then
				TriggerServerEvent('jsfour-idcard:open', GetPlayerServerId(PlayerId()), GetPlayerServerId(PlayerId()), 'weapon')
			elseif data.current.value == 'showFirearms' then
				local player, distance = ESX.Game.GetClosestPlayer()
					if distance ~= -1 and distance <= 3.0 then
						TriggerServerEvent('jsfour-idcard:open', GetPlayerServerId(PlayerId()), GetPlayerServerId(player), 'weapon')
					else
						ESX.ShowNotification('No hay jugadores cerca')
					end
			elseif data.current.value == 'checkID' then
				TriggerServerEvent('jsfour-idcard:open', GetPlayerServerId(PlayerId()), GetPlayerServerId(PlayerId()))
			elseif data.current.value == 'showID' then
				local player, distance = ESX.Game.GetClosestPlayer()

					if distance ~= -1 and distance <= 3.0 then
						TriggerServerEvent('jsfour-idcard:open', GetPlayerServerId(PlayerId()), GetPlayerServerId(player))
					else
						ESX.ShowNotification('~r~No hay jugadores cerca')
					end
					--
			elseif data.current.value == 'needs_menu' then
				TriggerEvent('esx-qalle-needs:openMenu')
				--end
					--
			elseif data.current.value == 'checkDriver' then
				TriggerServerEvent('jsfour-idcard:open', GetPlayerServerId(PlayerId()), GetPlayerServerId(PlayerId()), 'driver')
			elseif data.current.value == 'showDriver' then
				local player, distance = ESX.Game.GetClosestPlayer()

					if distance ~= -1 and distance <= 3.0 then
						TriggerServerEvent('jsfour-idcard:open', GetPlayerServerId(PlayerId()), GetPlayerServerId(player), 'driver')
					else
						ESX.ShowNotification('~r~No hay jugadores cerca')
					end
		end
	end,
	function(data, menu)
		menu.close()
	end
)
end

where did you put it esx_basicneeds or esx_status or esx_skin and client side or server side?

does the bars go away? for other HUDs or how do I do that so I can use the HUD from angelsrp_hud or threw_hud ? :stop_sign: :raising_hand_man:

When i poop or pee my bar doesnt affect it, so i die because of it.

Ever found a fix? Having this same issue!

Hey guys , ik this maybe off topic but do anyone have the slightest idea on how I can modify the esx_basicneed script so that I can choose the Prop of the food that I’m eating so that It doesn’t always look like I’m just eating a burger.
esx_basicneeds/client/main.lua

The picture up above is what I’m trying to change , I tried to follow other ways which I thought was the correct way & still didn’t receive the results I was looking for.
esx_basicneeds/client/main.lua

I have found the prop names for the props I want but I have no idea how to modify this script in the way that I can replace the prop_cs_burger_01 selection to another prop selection ( prop_choc_meto ) that would show me eating a different food instead of a burger. If anyone with any knowledge could help me out in any way , I’d would be very thankful for your help .

Yep, and i don’t think there’s a fix for that. I have the same problem.

fighting for my life trying to get this to work