Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

Commit

Permalink
set guiSetInputEnabled to false on resource stop
Browse files Browse the repository at this point in the history
  • Loading branch information
nrzull committed Jul 12, 2019
1 parent d2a9e50 commit 16053f6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions chat2_client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion meta.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<meta>
<info name="chat2" type="script" version="1.0.0" author="nrzull" />
<info name="chat2" type="script" version="1.0.1" author="nrzull" />

<script src="chat2_shared.lua" type="shared" />
<script src="chat2_server.lua" type="server" />
Expand Down

0 comments on commit 16053f6

Please sign in to comment.