GetPlayerBlurLevel
From Multi Theft Auto: Wiki
This function allows you to check the current blur level of a specified player.
Syntax
Click to collapse [-]
Serverint getPlayerBlurLevel ( player thePlayer )
OOP Syntax Help! I don't understand this!
- Method: player:getBlurLevel(...)
- Counterpart: setPlayerBlurLevel
Required Arguments
- thePlayer: The player whose blur level you want to check.
Returns
Returns the player's blur level if successful, false if an invalid player was given.
Click to collapse [-]
Clientint getBlurLevel ()
OOP Syntax Help! I don't understand this!
- Method: Player.getBlurLevel(...)
- Variable: .blurLevel
- Counterpart: setPlayerBlurLevel
Returns
Returns the local blur level.
Example
Click to collapse [-]
ServerThis example adds a command blurlevel with which you can check your current blur level.
function checkBlurLevel( playerSource ) local blur = getPlayerBlurLevel( playerSource ) if blur then outputChatBox( "Blur level: " .. blur, playerSource ) end end addCommandHandler("blurlevel", checkBlurLevel)
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