GuiSetChatActive

From Wiki G1R-MP G1 Remake Multiplayer
Jump to navigation Jump to search

guiSetChatActive

Activates or deactivates chat input mode.

Syntax

bool guiSetChatActive(bool active)

Parameters

Name Type Required Description
active bool yes True to capture input for chat, false to return input to the game.

Returns

Returns true when the chat state is changed; otherwise returns false.

Examples

Open chat input and close it shortly afterward:

guiSetChatActive(true)
setTimer(function()
    guiSetChatActive(false)
end, 5000, 1)

Notes

  • Available only in client-side resource scripts.