ResetBlurLevel

From Multi Theft Auto: Wiki
Revision as of 10:41, 3 July 2020 by 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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Resets the motion blur level on the clients screen to default value (36).

Syntax

Click to collapse [-]
Client
bool resetBlurLevel ( )

Returns

Returns true if the blur level was reset successfully. Returns false otherwise.

Example

Click to collapse [-]
Client

This example allows the player to reset their blur level via 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