From 16053f6fb1227e756def7aae902d86dc785e8a05 Mon Sep 17 00:00:00 2001 From: nrzull Date: Fri, 12 Jul 2019 23:15:42 +0500 Subject: [PATCH] set guiSetInputEnabled to false on resource stop --- chat2_client.lua | 5 +++++ meta.xml | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/chat2_client.lua b/chat2_client.lua index 77d7208..6254df7 100644 --- a/chat2_client.lua +++ b/chat2_client.lua @@ -181,6 +181,11 @@ end function onClientResourceStop() showChat(false) + + if state.activeInputKeyButton then + guiSetInputEnabled(false) + end + removeDebugHook("preFunction", listenForShowChat) removeDebugHook("preFunction", listenForOutputChatBox) removeDebugHook("preFunction", listenForClearChatBox) diff --git a/meta.xml b/meta.xml index 6e52bfb..633a9b6 100644 --- a/meta.xml +++ b/meta.xml @@ -1,5 +1,5 @@ - +