SetPlayerBlurLevel
From Multi Theft Auto: Wiki
Sets the motion blur level on the clients screen. Accepts a value between 0 and 255.
Syntax
Click to collapse [-]
Serverbool setPlayerBlurLevel ( player thePlayer, int level )
OOP Syntax Help! I don't understand this!
- Method: player:setBlurLevel(...)
- Variable: .blurLevel
- Counterpart: getPlayerBlurLevel
Required Arguments
- thePlayer: The player whose blur level will be changed.
- level: The level to set the blur to (default: 36)
Click to collapse [-]
Clientbool setBlurLevel ( int level )
OOP Syntax Help! I don't understand this!
- Method: Player.setBlurLevel(...)
- Counterpart: getPlayerBlurLevel
Required Arguments
- level: The level to set the blur to (default: 36)
Example
Click to collapse [-]
ServerThis example allows the player to set their blur level via a command
function changeBlurLevel ( playerSource, command, blur ) blur = tonumber(blur) if not blur or blur > 255 or blur < 0 then outputChatBox ( "Enter a value between 0 - 255.", playerSource ) else setPlayerBlurLevel ( playerSource, blur ) outputChatBox ( "Blur level set to: " .. blur, playerSource ) end end addCommandHandler("blur", changeBlurLevel)
See Also
- forcePlayerMap
- getAlivePlayers
- getDeadPlayers
- getPlayerACInfo
- getPlayerAnnounceValue
- getPlayerBlurLevel
- getPlayerCount
- getPlayerFromName
- getPlayerIdleTime
- getPlayerIP
- getPlayerMoney
- getPlayerName
- getPlayerNametagColor
- getPlayerNametagText
- getPlayerPing
FROM VERSION 1.5.7 r19626 ONWARDS
- getPlayerSerial
- getPlayerTeam
- getPlayerVersion
- getPlayerWantedLevel
- getRandomPlayer
- givePlayerMoney
- isPlayerMapForced
- isPlayerMuted
- isPlayerNametagShowing
- isVoiceEnabled
- redirectPlayer
- resendPlayerACInfo
- resendPlayerModInfo
- setPlayerAnnounceValue
- setPlayerBlurLevel
- setPlayerHudComponentVisible
- setPlayerMoney
- setPlayerMuted
- setPlayerName
- setPlayerNametagColor
- setPlayerNametagShowing
- setPlayerNametagText
FROM VERSION 1.5.7 r19626 ONWARDS
- setPlayerTeam
- setPlayerVoiceBroadcastTo
- setPlayerVoiceIgnoreFrom
- setPlayerWantedLevel
- spawnPlayer
- takePlayerMoney
- takePlayerScreenShot