setPlayerScriptDebugLevel | Multi Theft Auto: Wiki Skip to content

setPlayerScriptDebugLevel

Client-side
Server-side
Shared

Pair: getPlayerScriptDebugLevel

This page is incomplete! Help wanted!

Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.


This will set player's debug level, equivalent to debugscript <level>.

Syntax

setPlayerScriptDebugLevel ( )

Code Examples

server

This code will set joining players debug level to (3), (It is no recommended to use it in production, specially if you have sensitive data in your logs).

function setPlayerDebug (player)
setPlayerScriptDebugLevel(player, 3)
outputChatBox("You set debug script level to 3", player)
end
addCommandHandler("setdebug", setPlayerDebug)

See Also