From c6b38fe1e71ba740920b5c2761148c9a73e77daf Mon Sep 17 00:00:00 2001 From: Ameer Alntsheh <68712253+Abu-Maher@users.noreply.github.com> Date: Fri, 30 Sep 2022 22:45:58 +0300 Subject: [PATCH] Update c_shop.lua --- mods/deathmatch/resources/[vehicle]/carshop-system/c_shop.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mods/deathmatch/resources/[vehicle]/carshop-system/c_shop.lua b/mods/deathmatch/resources/[vehicle]/carshop-system/c_shop.lua index 304a15cc..ef8d902c 100644 --- a/mods/deathmatch/resources/[vehicle]/carshop-system/c_shop.lua +++ b/mods/deathmatch/resources/[vehicle]/carshop-system/c_shop.lua @@ -107,10 +107,14 @@ function carshop_buyCar_close() end guiSetInputEnabled(false) setElementData(getLocalPlayer(), "exclusiveGUI", false, false) + setElementData(getLocalPlayer(), "carshopfix", false) + setElementFrozen(getLocalPlayer(), false) end --PREVENT ABUSER TO CHANGE CHAR addEventHandler ( "account:changingchar", getRootElement(), carshop_buyCar_close ) addEventHandler("onClientChangeChar", getRootElement(), carshop_buyCar_close) +addEventHandler("CarshopFix", getRootElement(), carshop_buyCar_close) +addEvent("CarshopFix", true) function cleanUp() setElementData(getLocalPlayer(), "exclusiveGUI", false, false)