GetPlayerScriptDebugLevel: Difference between revisions
Jump to navigation
Jump to search
m (Add shared function area & beta header) |
m (Add new oop syntax) |
||
Line 28: | Line 28: | ||
int getPlayerScriptDebugLevel() | int getPlayerScriptDebugLevel() | ||
</syntaxhighlight> | </syntaxhighlight> | ||
{{OOP||[[player]]:getScriptDebugLevel| | {{OOP||[[player]]:getScriptDebugLevel|scriptDebugLevel}} | ||
===Returns=== | ===Returns=== |
Revision as of 20:56, 15 July 2024
This will allow you to retrieve the player current debug script level.
Syntax
Click to collapse [-]
Serverint 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.
Click to collapse [-]
Clientint getPlayerScriptDebugLevel()
OOP Syntax Help! I don't understand this!
- Method: player:getScriptDebugLevel(...)
- Variable: .scriptDebugLevel
Returns
Returns an int with the local player's debug script level.
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