- Documentation
- Shared functions
- isChatVisible
Function
isChatVisible
Checks whether the chat box is visible. On the server you pass the player.
Syntax
Server
bool isChatVisible(player thePlayer)Client
bool isChatVisible()Arguments
thePlayerplayer- The player (server only).Not in MTA:SA
Differences from MTA:SA
- Arguments in a different colour differ from MTA:SA.
In MTA:SA
isChatVisible()Returns
true if the chat is visible.
Example
bindKey("F7", "down", function()
showChat(not isChatVisible())
end)