GetChatboxCharacterLimit: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Initial contents)
 
mNo edit summary
 
Line 10: Line 10:
int getChatboxCharacterLimit()
int getChatboxCharacterLimit()
</syntaxhighlight>
</syntaxhighlight>
{{OOP||[[GUI widgets|GuiElement]].setChatboxCharacterLimit|chatboxCharacterLimit|setChatboxCharacterLimit}}
{{OOP||[[GUI widgets|GuiElement]].getChatboxCharacterLimit|chatboxCharacterLimit|setChatboxCharacterLimit}}


===Returns===
===Returns===

Latest revision as of 22:41, 25 December 2022

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.getChatboxCharacterLimit(...)
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