GetPlayerScriptDebugLevel: Difference between revisions
Jump to navigation
Jump to search
(Created page with "__NOTOC__ {{Server client function}} <!-- Describe in plain english what this function does. Don't go into details, just give an overview --> This will allow you to retrieve...") |
mNo edit summary |
||
Line 24: | Line 24: | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
addEventHandler('onClientRender', root, function() | addEventHandler('onClientRender', root, function() | ||
dxDrawText("Debug Script Level: "..getPlayerScriptDebugLevel(localPlayer), 10, 10) | |||
end) | end) | ||
</syntaxhighlight> | </syntaxhighlight> |
Revision as of 02:47, 9 January 2020
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
- 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