From bd2a445140dfefaeebe3fe53fdba64ca0ca61c7f Mon Sep 17 00:00:00 2001 From: rubin Date: Sun, 12 Feb 2023 20:53:22 +0300 Subject: [PATCH] fixed close stats --- mafia-tools.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mafia-tools.lua b/mafia-tools.lua index ea46b8c..2a1c24a 100644 --- a/mafia-tools.lua +++ b/mafia-tools.lua @@ -1140,7 +1140,10 @@ get_guns.onShowDialog = function(id, style, title, button1, button2, text) config.data.stats.frac = frac config.save(config.data) if not isPlayerInMafia() then - thisScript():unload() + lua_thread.create(function() + wait(3000) + thisScript():unload() + end) end end if not get_guns.check_stats then