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

Function

setPlayerHelpTextsEnabled

Server and clientPlayersTrilogy Hub only

Turns the game's hints and tutorials on or off (the San Andreas help box, e.g. the first time you pull a driver out of a car). They are off by default. On the server you pass a player or root (everyone); on the client the change only affects that player.

Syntax

Server

bool setPlayerHelpTextsEnabled(player thePlayer, bool enabled)

Client

bool setPlayerHelpTextsEnabled(bool enabled)

Arguments

thePlayerplayer
A player or root (server only).
enabledbool
true = hints are shown.

Returns

true on success.

Example

New players see the game hints until they type /nohints.

addEventHandler("onPlayerJoin", root, function()
    setPlayerHelpTextsEnabled(source, true)
end)

addCommandHandler("bezpodpowiedzi", function(player)
    setPlayerHelpTextsEnabled(player, false)
end)

See also