ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. setPlayerScriptDebugLevel

Function

setPlayerScriptDebugLevel

ServerPlayersIdentical to MTA:SA

Sets which script debug messages the player sees (0 none, 1 errors, 2 plus warnings, 3 everything).

Syntax

bool setPlayerScriptDebugLevel(player thePlayer, int level)

Arguments

thePlayerplayer
The player.
levelint
Level 0-3.

Returns

true on success.

Example

addEventHandler("onPlayerLogin", root, function()
    if getPlayerAdminLevel(source) == "owner" then
        setPlayerScriptDebugLevel(source, 3)
    end
end)

See also