GetPlayerScriptDebugLevel

From Multi Theft Auto: Wiki
Revision as of 18:39, 22 January 2020 by Vadya963 (talk | contribs)
Jump to navigation Jump to search

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

Syntax

string getPlayerScriptDebugLevel( player thePlayer )

OOP Syntax Help! I don't understand this!

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


Required Arguments

  • thePlayer: The person whose debug script level you want

Returns

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

Example

This will show your debug script level on your screen.

addEventHandler('onClientRender', root, function()
    dxDrawText("Debug Script Level: "..getPlayerScriptDebugLevel(localPlayer), 10, 10)
end)

See Also