GetPlayerScriptDebugLevel: Difference between revisions
Jump to navigation
Jump to search
m (ver) |
|||
Line 2: | Line 2: | ||
{{Server function}} | {{Server function}} | ||
<!-- Describe in plain english what this function does. Don't go into details, just give an overview --> | <!-- Describe in plain english what this function does. Don't go into details, just give an overview --> | ||
{{New feature/item|3.0158|1.5.7|19626| | |||
This will allow you to retrieve the player current debug script level. | This will allow you to retrieve the player current debug script level. | ||
}} | |||
==Syntax== | ==Syntax== | ||
<!-- NOTE: don't use 'special' names for variable names, e.g. you shouldn't be writing things like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents the syntax highlighting being odd --> | <!-- NOTE: don't use 'special' names for variable names, e.g. you shouldn't be writing things like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents the syntax highlighting being odd --> |
Revision as of 10:36, 20 May 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
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 )
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