Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion resource/cl_main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ RegisterNetEvent('txcl:showWarning', function(author, reason, actionId, isWarnin
local count = 0
while true do
Wait(100)
if IsControlPressed(dismissKeyGroup, dismissKey) then
if IsControlPressed(dismissKeyGroup, dismissKey) or IsDisabledControlPressed(dismissKeyGroup, dismissKey) then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to call this twice, will still work

Suggested change
if IsControlPressed(dismissKeyGroup, dismissKey) or IsDisabledControlPressed(dismissKeyGroup, dismissKey) then
if IsDisabledControlPressed(dismissKeyGroup, dismissKey) then

count = count + 1
if count >= countLimit then
sendMenuMessage('closeWarning')
Expand Down