GetPlayerScriptDebugLevel: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 10: | Line 10: | ||
int getPlayerScriptDebugLevel( player thePlayer ) | int getPlayerScriptDebugLevel( player thePlayer ) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
{{OOP||[[player]]:getScriptDebugLevel|scriptDebugLevel}} | {{OOP||[[player]]:getScriptDebugLevel|scriptDebugLevel|setPlayerScriptDebugLevel}} | ||
===Required Arguments=== | ===Required Arguments=== | ||
<!-- List each argument one per line. This should be the argument's name as in the argument list above, NOT the argument's data type --> | <!-- List each argument one per line. This should be the argument's name as in the argument list above, NOT the argument's data type --> |
Revision as of 14:14, 25 October 2020
This will allow you to retrieve the player current debug script level.
Syntax
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
Returns an int with the player debug script level, false if the player is invalid.
Example
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 )
Requirements
This template will be deleted.
See Also
- getPlayerTeam
- getPlayerBlurLevel
- setPlayerBlurLevel
- getPlayerSerial
- forcePlayerMap
- getPlayerScriptDebugLevel
- getPlayerFromName
- getPlayerMoney
- getPlayerName
- getPlayerNametagColor
- getPlayerNametagText
- getPlayerPing
- getPlayerWantedLevel
- givePlayerMoney
- isPlayerMapForced
- isPlayerNametagShowing
- setPlayerHudComponentVisible
- setPlayerMoney
- setPlayerNametagColor
- setPlayerNametagShowing
- setPlayerNametagText
- takePlayerMoney
- countPlayersInTeam
- getPlayersInTeam
- isVoiceEnabled
- setControlState
- getControlState