ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Shared functions
  3. showChat

Function

showChat

Shows or hides the chat box. On the server you pass a player (or root for everyone).

Syntax

Server

bool showChat(player thePlayer, bool show)

Client

bool showChat(bool show)

Arguments

thePlayerplayer
A player or root (server only).
showbool
true shows it.

Differences from MTA:SA

  • These MTA:SA arguments are not here: bool inputBlocked

In MTA:SA

showChat(player thePlayer, bool show, bool inputBlocked)

Returns

true on success.

Example

addEventHandler("onClientResourceStart", resourceRoot, function()
    showChat(false)
    setTimer(showChat, 10000, 1, true)
end)

See also