FearlessStudios

setFogDensity

Server export to set the forecast fog overlay

Sets the fog overlay strength and syncs clients. The value is clamped to the configured range. FOGGY weather ignores the overlay and uses a density of zero.

Usage

server.lua
local ok = exports["FS-Weather"]:setFogDensity(0.3)

Parameters

Prop

Type

Returns

  • boolean: False if Config.FogDensity.Enabled is disabled; true when the state was updated.