getChatboxLayout | Multi Theft Auto: Wiki Skip to content

getChatboxLayout

Client-side
Server-side
Shared

This page is incomplete! Help wanted!

Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.


Returns information about how the chatbox looks.

Syntax

getChatboxLayout ( )

Code Examples

client

This code makes the chatbox empty when you type /clear

addCommandHandler("clear",
function ()
local lines = getChatboxLayout()["chat_lines"]
for i = 1, lines do
outputChatBox("")
end
end
)

See Also

GUI Functions