RLS Studios
ProjectsPatreonCommunityDocsAbout
Join Patreon
BeamNG Modding Docs

Guides

Reference

server/commands - Camera & Input Commandsge_utils - Game Engine Utility Functionsmain.lua - GE Lua Entry Point & Game Loopmap.lua - Navigation Graph (AI Road Map)screenshot.lua - Screenshot Systemserver/server - Level Loading & Game ServerserverConnection - Client-Server Connection Manager`setSpawnpoint` - Default Spawn Point Persistence`simTimeAuthority` - Simulation Time & Bullet Time Control`spawn` - Vehicle Spawning & Safe Placement`suspensionFrequencyTester` - Suspension Natural Frequency Analysis
Activity ManagerAudio Bank ManagerAudio Ribbon SystemBus Route ManagerCamera SystemCore Chat (IRC)Core CheckpointsCore Command HandlerCoupler Camera ModifierDevices (RGB Peripherals)Dynamic PropsEnvironmentFlowgraph ManagerForestFun StuffGame ContextGame StateGround Marker ArrowsGround MarkersHardware InfoHighscoresHotlappingInventoryJob SystemLap TimesLevelsLoad Map CommandMetricsMod ManagerMultiseatMultiseat CameraMulti SpawnOnlinePaths (Camera Paths)Quick Access (Radial Menu)Recovery PromptRemote ControllerReplayRepositoryRope Visual TestScheme Command ServerCore SnapshotCore SoundsCore TerrainTraffic SignalsTrailer RespawnVehicle Active PoolingVehicle Bridge (GE ↔ VLua Communication)Vehicle MirrorsVehicle PaintsCore VehiclesVehicle TriggersVersion UpdateWeather SystemWindows Console

UI

Resources

BeamNG Game Engine Lua Cheat SheetGE Developer RecipesMCP Server Setup

// RLS.STUDIOS=true

Premium Mods for BeamNG.drive. Career systems, custom vehicles, and immersive gameplay experiences.

Index

HomeProjectsPatreon

Socials

DiscordPatreon (RLS)Patreon (Vehicles)

© 2026 RLS Studios. All rights reserved.

Modding since 2024

API ReferenceGE Extensionscore

Weather System

Loads and applies weather presets that modify scene object properties (fog, sky, lighting). Supports instant activation or smooth time-based transitions.

Loads and applies weather presets that modify scene object properties (fog, sky, lighting). Supports instant activation or smooth time-based transitions.


Public API

FunctionSignatureDescription
M.activate(presetName)Instantly applies a weather preset
M.switchWeather(presetName, t?)Smoothly transitions to a preset over t seconds (default 15)
M.getPresets()Returns an array of available preset names
M.getCurrentWeatherPreset()Returns the name of the currently selected preset
M.dumpWeather()Dumps all preset data to the console

Hooks

HookDescription
M.onExtensionLoadedResets state and loads presets
M.onClientPostStartMissionReloads presets when a level starts
M.onPreRenderUpdates interpolation during smooth weather transitions

Preset Format

Presets are JSON files in art/weather/ (global) or levels/<name>/weather/ (level-specific). Structure:

{
  "Clear": {
    "ScatterSky": {
      "brightness": 1.0,
      "fogAmount": 0.1
    },
    "LevelInfo": {
      "fogDensity": 0.001
    }
  }
}

Each key is a scene object class, values are attribute name → target value mappings. Supported types: float, int, ColorF, Point4F, Point3F/vec3, and string.

Usage Example

-- Instant weather change
core_weather.activate("Foggy")

-- Smooth 10-second transition
core_weather.switchWeather("Rainy", 10)

-- List available presets
local presets = core_weather.getPresets()
for _, name in ipairs(presets) do print(name) end

Version Update

Detects game version changes on startup and performs folder cleanup when a major version update is detected.

Windows Console

Provides the backend for the Windows debug console window, routing commands to different execution contexts (GE Lua, TorqueScript, CEF/JS, vehicle Lua).

On this page

Public APIHooksPreset FormatUsage Example