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

Function

setFogDistance

ServerMiscellaneousIdentical to MTA:SA

Sets the fog distance (-1000 to 1000). The value is stored for compatibility with existing scripts (getFogDistance), but Trilogy Hub does not change the in-game fog yet.

Syntax

bool setFogDistance(float distance)

Arguments

distancefloat
The distance.

Returns

true on success.

Example

setFogDistance(50)

See also