SetChatboxCharacterLimit

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

Sets the maximum amount of characters that can be input via chatbox

Syntax

bool setChatboxCharacterLimit(int charLimit)

OOP Syntax Help! I don't understand this!

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


Required Arguments

  • charLimit: an integer between 0-255. Passing -1 will reset the character limit (96)

Returns

Returns true if the character limit was set, false otherwise

Example

This example shows how you can set the character limit to maximum when a player joins the server (assuming this resource is running when they join).

addEventHandler("onClientResourceStart", resourceRoot, function()
    setChatboxCharacterLimit(255)
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