Skip to content
This repository has been archived by the owner on Apr 7, 2023. It is now read-only.

Update cl_chat.lua #208

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update cl_chat.lua #208

wants to merge 1 commit into from

Conversation

meta-hub
Copy link

Added setHideState, getHideState functions, with events and exports for each.

Example usage:

local chat = exports['chat']
local prevState = chat:getHideState()

chat:setHideState('ALWAYS_HIDE')
Wait(3000)

chat:setHideState(prevState)

Added `setHideState`, `getHideState` functions, with events and exports for each.
if setLastState then
lastChatHideState = state
end
end
Copy link

@ItsANoBrainer ItsANoBrainer Mar 21, 2022

Choose a reason for hiding this comment

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

Suggested change
end
SetResourceKvp('hideState', tostring(chatHideState))
end

Save changes to KVP.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants