- Documentation
- Shared functions
- setPlayerHelpTextsEnabled
Function
setPlayerHelpTextsEnabled
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). enabledbooltrue= 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)