Automatic Chat
This snippet allows the chat to automatically fade out when not in use, keeping the interface clean and immersive.
Go to chat/cl_chat.lua
line 231 and replace
This:
if not isRDR then
if RegisterKeyMapping then
RegisterKeyMapping('toggleChat', 'Toggle chat', 'keyboard', 'l')
end
RegisterCommand('toggleChat', function()
if chatHideState == CHAT_HIDE_STATES.SHOW_WHEN_ACTIVE then
chatHideState = CHAT_HIDE_STATES.ALWAYS_SHOW
elseif chatHideState == CHAT_HIDE_STATES.ALWAYS_SHOW then
chatHideState = CHAT_HIDE_STATES.ALWAYS_HIDE
elseif chatHideState == CHAT_HIDE_STATES.ALWAYS_HIDE then
chatHideState = CHAT_HIDE_STATES.SHOW_WHEN_ACTIVE
end
isFirstHide = false
SetResourceKvp('hideState', tostring(chatHideState))
end, false)
end
With this:
if not isRDR then
chatHideState = CHAT_HIDE_STATES.SHOW_WHEN_ACTIVE
isFirstHide = false
SetResourceKvp('hideState', tostring(chatHideState))
end
Last updated