getPlayerScriptDebugLevel | Multi Theft Auto: Wiki Skip to content

getPlayerScriptDebugLevel

Client-side
Server-side
Shared

Pair: setPlayerScriptDebugLevel

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 allow you to retrieve the player current debug script level.

Syntax

getPlayerScriptDebugLevel ( )

Code Examples

server

Displays a message in the chat what is the player's debug level.

function showdebug (player)
local level = getPlayerScriptDebugLevel( player )
outputChatBox( "Your Script Debug Level: " .. level )
end
addCommandHandler ( "showdebug", showdebug )

See Also