RLS Studios
ProjectsPatreonCommunityDocsAbout
Join Patreon
BeamNG Modding Docs

Guides

Reference

Server CommandsGE UtilitiesGame Engine MainNavigation GraphScreenshot CaptureServerServer ConnectionSpawnpoint ManagerSimulation TimeVehicle SpawningSuspension Frequency Tester
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

Version Update

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

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


Public API

FunctionSignatureDescription
M.updatedFromVersion()Returns the previous version string, or nil if no update occurred

Hooks

HookDescription
M.onExtensionLoadedCompares current vs last version; runs FS:folderCleanup() on major update
M.onUpdateSaves current version to settings (runs once then self-removes)
M.lastVersionThe last known game version (default nil).

Internal Logic

  1. Reads settings.lastVersion and compares major version (X.Y)
  2. Skips cleanup on new installs (onlineFeatures == "ask") or same major version
  3. On major update: calls FS:folderCleanup(lastVersion) which backs up and cleans user files
  4. Stores the backup destination path internally
  5. On next frame: writes beamng_version to settings.lastVersion

Usage Example

-- Check if game was just updated
local prevVer = extensions.core_versionUpdate.updatedFromVersion()
if prevVer then
  log("I", "", "Updated from " .. prevVer)
end

See Also

  • Activity Manager - Related reference
  • Audio Bank Manager - Related reference
  • Audio Ribbon System - Related reference
  • Core Systems Guide - Guide

Vehicle Triggers

Handles interactive vehicle triggers (buttons, levers, switches) that appear on vehicles. Manages cursor-based raycasting, input action binding, and a debug ImGui window.

Weather System

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

On this page

Public APIHooksInternal LogicUsage ExampleSee Also