setPlayerBlurLevel | Multi Theft Auto: Wiki Skip to content

setPlayerBlurLevel

Client-side
Server-side
Shared

Pair: getPlayerBlurLevel

This page is incomplete! Help wanted!

Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.


Sets the motion blur level on the clients screen. Accepts a value between 0 and 255.

Syntax

setPlayerBlurLevel ( )

Code Examples

server

This 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