From Multi Theft Auto: Wiki
Jump to navigation Jump to search

This will allow you to retrieve the player current debug script level.


int getPlayerScriptDebugLevel( player thePlayer )

OOP Syntax Help! I don't understand this!

Method: player:getScriptDebugLevel(...)
Variable: .scriptDebugLevel
Counterpart: setPlayerScriptDebugLevel

Required Arguments

  • thePlayer: The person whose debug script level you want


Returns an int with the player debug script level, false if the player is invalid.


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 )
addCommandHandler ( "showdebug", showdebug )


Minimum server version 1.5.7-9.19626
Minimum client version n/a

Note: Using this feature requires the resource to have the above minimum version declared in the meta.xml <min_mta_version> section. e.g. <min_mta_version server="1.5.7-9.19626" />

See Also