GetChatboxCharacterLimit

From Multi Theft Auto: Wiki
Revision as of 22:39, 25 December 2022 by LopSided (talk | contribs) (Initial contents)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Gets the current maximum amount of characters that can be input via chatbox

Syntax

int getChatboxCharacterLimit()

OOP Syntax Help! I don't understand this!

Method: GuiElement.setChatboxCharacterLimit(...)
Variable: .chatboxCharacterLimit
Counterpart: setChatboxCharacterLimit


Returns

Returns a number between 0-255, representing the chatbox input character limit

Example

This example shows how you can check your current chatbox character limit via command

addCommandHandler("chatlimit", function()
    outputChatBox("Current chatbox character limit: " .. tostring( getChatboxCharacterLimit() ) )
end)

See Also

General functions

Browsers

Buttons

Checkboxes

Comboboxes

Edit Boxes

Gridlists

Memos

Progressbars

Radio Buttons

Scrollbars

Scrollpanes

Static Images

Tab Panels

Tabs

Text Labels

Windows

Input

GUI