getChatboxCharacterLimit | Multi Theft Auto: Wiki Skip to content

getChatboxCharacterLimit

Client-side
Server-side
Shared

Pair: setChatboxCharacterLimit

Manual Review Required

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


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

OOP Syntax Help! I don't understand this!

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

Syntax

int getChatboxCharacterLimit ( )

Returns

  • int: value

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

Code Examples

shared

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

GUI Functions