GetPlayerScriptDebugLevel: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 32: | Line 32: | ||
==Requirements== | ==Requirements== | ||
{{Requirements|1.5.7-9.19626||}} | {{Requirements|1.5.7-9.19626|n/a|}} | ||
==See Also== | ==See Also== | ||
<!-- Change FunctionArea to the area that this function is in on the main function list page, e.g. Server, Player, Vehicle etc --> | <!-- Change FunctionArea to the area that this function is in on the main function list page, e.g. Server, Player, Vehicle etc --> | ||
{{Player_functions}} | {{Player_functions}} |
Revision as of 14:15, 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