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

Function

isPlayerHelpTextsEnabled

Server and clientPlayersTrilogy Hub only

Checks whether the game's hints and tutorials are enabled for a player (setPlayerHelpTextsEnabled). On the client it checks the local player.

Syntax

Server

bool isPlayerHelpTextsEnabled(player thePlayer)

Client

bool isPlayerHelpTextsEnabled()

Arguments

thePlayerplayer
The player (server only).

Returns

true when the hints are enabled.

Example

addCommandHandler("podpowiedzi", function(player)
    setPlayerHelpTextsEnabled(player, not isPlayerHelpTextsEnabled(player))
end)

See also