setGrainMultiplier | Multi Theft Auto: Wiki Skip to content

setGrainMultiplier

Client-side
Server-side
Shared

Manual Review Required

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

bool setGrainMultiplier ( string modifierName, float multiplier )
Required Arguments
  • modifierName: MISSING_PARAM_DESC
  • multiplier: MISSING_PARAM_DESC

Returns

  • bool: value

Returns true if the grain multiplier was set, false otherwise.

Code Examples

shared

This example disables a grain effect for the rain.

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

See Also

World Functions