- Documentation
- Shared functions
- 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). showbooltrueshows 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)