setGrainMultiplier | Multi Theft Auto: Wiki Skip to content

setGrainMultiplier

Client-side
Server-side
Shared

This page is incomplete! Help wanted!

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


This function is used to adjust an intensity of the grain effect in different situations. It separately modulates an intensity of effect for infrared goggles, night vision goggles, rain and screen overlay.

Syntax

setGrainMultiplier ( )

Code Examples

client

This example disables a grain effect for the rain.

addCommandHandler( "disable_rain_grain", function()
setGrainMultiplier( "rain", 0 )
end )

See Also

World Functions