ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. setGrainLevel

Function

setGrainLevel

ServerWorldIdentical to MTA:SA

Adds film-like grain to the game image for all players (0 = none, 255 = strongest). The strength is multiplied by setGrainMultiplier.

Syntax

bool setGrainLevel(int level)

Arguments

levelint
Strength 0-255.

Returns

true on success.

Example

setGrainLevel(40)

Notes

Depends on the player's graphics. At the lowest effects (post-process) quality the game does not draw grain.

See also