From 9d9aec5a177d0eb525ff044fea01e7c3d8dadb97 Mon Sep 17 00:00:00 2001 From: bitpredator <67551273+bitpredator@users.noreply.github.com> Date: Tue, 6 Aug 2024 18:36:41 +0200 Subject: [PATCH] fix: attempt to index a nil value (upvalue 'status') --- .../resources/[bpt_addons]/bpt_basicneeds/client/main.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server-data/resources/[bpt_addons]/bpt_basicneeds/client/main.lua b/server-data/resources/[bpt_addons]/bpt_basicneeds/client/main.lua index 2f59bb3c2..ec0e3d965 100644 --- a/server-data/resources/[bpt_addons]/bpt_basicneeds/client/main.lua +++ b/server-data/resources/[bpt_addons]/bpt_basicneeds/client/main.lua @@ -32,13 +32,13 @@ end) AddEventHandler("bpt_status:loaded", function(status) TriggerEvent("bpt_status:registerStatus", "hunger", 1000000, "#CFAD0F", function(status) return Config.Visible - end, function() + end, function(status) status.remove(100) end) TriggerEvent("bpt_status:registerStatus", "thirst", 1000000, "#0C98F1", function() return Config.Visible - end, function() + end, function(status) status.remove(75) end) end)