You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello , do I need esx_basicneeds with this renzu_status?
I am maybe blind but I have no idea where is error becouse as I check it its all OK but I get this to F8
Basicneeds aroud line 54:#
AddEventHandler('esx_status:onTick', function(data)
local playerPed = PlayerPedId()
local prevHealth = GetEntityHealth(playerPed)
local health = prevHealth
for k, v in pairs(data) do
########## if v.name == 'hunger' and v.percent == 0 then
if prevHealth <= 150 then
health = health - 5
else
health = health - 1
end
elseif v.name == 'thirst' and v.percent == 0 then
if prevHealth <= 150 then
health = health - 5
else
health = health - 1
end
end
end
if health ~= prevHealth then SetEntityHealth(playerPed, health) end
end)
Renzu_status line around 81#
CreateThread(function()
while not Statusregistered do
Wait(2000)
end
while true do
if Config.OnTick_Value_only then
############# TriggerEvent('esx_status:onTick', GetStatus(Config.register_status))
else
TriggerEvent('esx_status:onTick', GetStatusData(true))
end
Wait(Config.TickTime)
end
end)
am I blind?
Please help
Thanks
The text was updated successfully, but these errors were encountered:
Hello , do I need esx_basicneeds with this renzu_status?
I am maybe blind but I have no idea where is error becouse as I check it its all OK but I get this to F8
Basicneeds aroud line 54:#
Renzu_status line around 81#
am I blind?
Please help
Thanks
The text was updated successfully, but these errors were encountered: