ResetBlurLevel: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 11: Line 11:


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


==Example==
==Example==

Revision as of 11:23, 20 September 2021

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, 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)

Requirements

Minimum server version n/a
Minimum client version 1.5.7-9.20450

Note: Using this feature requires the resource to have the above minimum version declared in the meta.xml <min_mta_version> section. e.g. <min_mta_version client="1.5.7-9.20450" />

See Also