GuiSetChatActive: Difference between revisions

From Wiki G1R-MP G1 Remake Multiplayer
Jump to navigation Jump to search
Automatyczna aktualizacja dokumentacji funkcji
 
Complete Lua function catalog
 
Line 30: Line 30:
* Available only in client-side resource scripts.
* Available only in client-side resource scripts.


[[Category:Lua Functions]]
[[Category:Client Functions]]
[[Category:Client Functions]]
[[Category:GUI Functions]]
[[Category:GUI Functions]]

Latest revision as of 09:54, 15 August 2026

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.