Skip to content

Update cl_chat.lua - #208

Open
meta-hub wants to merge 1 commit into
citizenfx:masterfrom
meta-hub:patch-1
Open

Update cl_chat.lua#208
meta-hub wants to merge 1 commit into
citizenfx:masterfrom
meta-hub:patch-1

Conversation

@meta-hub

Copy link
Copy Markdown

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

@ItsANoBrainer ItsANoBrainer Mar 21, 2022

Copy link
Copy Markdown

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 join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants