local hygiene,poo,pee = nil,nil,nil
RegisterNetEvent("esx_status:onTick")
AddEventHandler("esx_status:onTick", function(vitals) -- use renzu_status
for k,v in pairs(vitals) do
if v.name == 'hygiene' then
hygiene = v.val
end
if v.name == 'pee' then
pee = v.val
end
if v.name == 'poop' then
poo = v.val
end
end
end)
I have players pooping and peeing all over the city, trying to find a way to make it for our city. Also trying to turn down the pee and pooping ever 5 mins lol. Other than that I am dying laughing working with this lol
The poo and pee value from config should be is Higher = slower Smaller = faster
The formula uses a ÷
I will change the formula soon so its not confusing
When you restart the script it adds the items to the sql twice or is trying to
I like it tho,
It would be dope if they pooped once a day, and pee twice to 4 times.
config.hygieneremove = 100 -- value to remove per tick (if using renzu_status check the multiplier)
config.thirst_to_pee = 50 -- thirst to pee convertion, pee will add if you gain thirst (ex. from drinking water item)
config.hunger_to_poo = 50 -- hunger to poo convertion, poo will add if you gain hunger (ex. from eating burger item)
this is main config which controls the speed of status degration
the poo and pee, needs to be higher to be a slower degration.
also dont forget esx_status tick have a default remove value, in my case its default 100 points.
you can see it on register status event ex. in basicneeds
yeah it is weight indeed as default you just need to make it ‘weight’ also on the line that reads the item from the sql querry in your next commit
and no, I’d rather die than use this shit xD