ResetBlurLevel: Difference between revisions
Jump to navigation
Jump to search
Zangomangu (talk | contribs) (Created page with "{{Client function}} __NOTOC__ Resets the motion blur level on the clients screen to default value (36). ==Syntax== <section name="Client" class="client" show="true"> <syntaxh...") |
Fernando187 (talk | contribs) (Remove obsolete Requirements section) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Client function}} | {{Client function}} | ||
__NOTOC__ | __NOTOC__ | ||
Resets the motion blur level on the | Resets the motion blur level on the client's screen to default value (36). | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
bool resetBlurLevel ( ) | bool resetBlurLevel ( ) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==Returns== | ==Returns== | ||
Returns ''true'' if the blur level was reset successfully | Returns ''true'' if the blur level was reset successfully, ''false'' otherwise. | ||
==Example== | ==Example== | ||
This example allows the player to reset their blur level with a command: | |||
This example allows the player to reset their blur level | <syntaxhighlight lang="lua"> | ||
<syntaxhighlight lang="lua"> | function resetBlurCommand () | ||
function resetBlurCommand() | if resetBlurLevel () then | ||
outputChatBox ("Reset blur level.", 0, 255, 0) | |||
else | |||
outputChatBox ("Failed to reset blur level.", 255, 0, 0) | |||
end | |||
end | end | ||
addCommandHandler("resetblur", resetBlurCommand) | |||
addCommandHandler ("resetblur", resetBlurCommand) | |||
</syntaxhighlight> | </syntaxhighlight> | ||
==See Also== | ==See Also== | ||
{{Player functions}} | {{Player functions}} |
Latest revision as of 17:20, 7 November 2024
Resets the motion blur level on the client's screen to default value (36).
Syntax
bool resetBlurLevel ( )
Returns
Returns true if the blur level was reset successfully, false otherwise.
Example
This example allows the player to reset their blur level with a command:
function resetBlurCommand () if resetBlurLevel () then outputChatBox ("Reset blur level.", 0, 255, 0) else outputChatBox ("Failed to reset blur level.", 255, 0, 0) end end addCommandHandler ("resetblur", resetBlurCommand)
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