HUDClient

mpTextChatDisable

MP_TEXT_CHAT_DISABLE0x1DB21A44B09E8BA3

The GTA V native MP_TEXT_CHAT_DISABLE of the HUD namespace, as LS:MP client scripts call it: the global function mpTextChatDisable, in JavaScript and in Lua.

SignatureJavaScript
mpTextChatDisable(toggle: boolean): void
SignatureLua
mpTextChatDisable(toggle: boolean)

Usage

JavaScript
mpTextChatDisable(toggle);
Lua
mpTextChatDisable(toggle)

Parameters

ParameterTypeJavaScriptLua
toggleBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Hides the chat history, closes the input box and makes it unable to be opened unless called again with FALSE.

Reference

Namespace
HUD HUD
In the game
void MP_TEXT_CHAT_DISABLE(BOOL toggle)
Hash
0x1DB21A44B09E8BA3
Formerly
_SET_TEXT_CHAT_UNK _MULTIPLAYER_CHAT_SET_DISABLED

Open in the interactive natives reference