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

Core Sounds

Manages GE-side sound system: global audio parameters, engine/exhaust sound init, cabin filter, and audio blur.

Manages GE-side sound system: global audio parameters, engine/exhaust sound init, cabin filter, and audio blur.


Overview

Extension: core_sounds - Updates global FMOD parameters every frame (camera speed, vehicle speed, time-of-day, underwater state, etc.). Also provides engine/exhaust sound initialization and cabin filter strength control.


Dependencies

core_camera, core_settings_settings, core_input_bindings


Public Functions

FunctionDescription
M.onPreRender(dtReal, dtSim, dtRaw)Per-frame update of global audio params
M.initEngineSound(vehId, engineId, jsonPath, nodeIdArray, noloadVol, loadVol)Initializes engine sound for a vehicle
M.initExhaustSound(vehId, engineId, jsonPath, nodeIdPairArray, noloadVol, loadVol)Initializes exhaust sound with node pairs
M.updateEngineSound(vehId, engineId, rpm, onLoad, engineVolume)Updates engine sound parameters
M.setEngineSoundParameter(vehId, engineId, paramName, paramValue)Sets a single engine sound parameter
M.setEngineSoundParameterList(vehId, engineId, parameters)Sets multiple engine sound parameters
M.setExhaustSoundNodes(vehId, engineId, nodeIdPairArray)Updates exhaust node positions
M.setCabinFilterStrength(objId, value)Sets cabin filter reverb strength (0–1) for player vehicle
M.setAudioBlur(value)Manually sets the game audio blur value
M.onSettingsChanged()Refreshes AudioInsideModifier from settings
M.onUiChangedState(toState, fromState)Manages audio blur during mission UI transitions
M.onMissionInfoChangedState(fromState, toState, content)Audio blur for mission info panel
M.onActivityAcceptGatherData(elemData, activityData)Detects mission marker interactions for audio blur
M.onMissionAvailabilityChanged(data)Clears mission marker interaction flag
M.onVehicleSwitched(oldId, newId, player)Triggers cabin filter update on vehicle switch
M.cabinFilterStrengthNumber. Cabin audio filter strength (default 1).
M.dependenciesTable. Required extensions: {'core_camera', 'core_settings_settings', 'core_input_bindings'}

Global Audio Parameters Updated Per Frame

ParameterDescription
g_GameAudioBlurAudio blur amount (0–1)
g_CamSpeedMSCamera movement speed (m/s)
g_CamRotationSpeedMSCamera rotation speed
g_CamRotationAngleCamera yaw angle (degrees)
g_VehicleSpeedPlayerMSPlayer vehicle speed (m/s)
g_CamOnboardCockpit camera flag
g_CamFreeFree camera flag
g_CamUnderwaterUnderwater camera flag
g_UnderwaterDepthDepth below water surface
g_CamHeightToGroundHeight above terrain
g_CamHeightToSeaHeight above sea level
g_TodTime of day value
c_CabinFilterReverbStrengthCabin reverb strength

Module State

VariableTypeDefault
dependenciestable{'core_camera', 'core_settings_settings', 'core...
cabinFilterStrengthnumber1
cabinFilterStrengthnumber1

Usage Examples

-- Init engine sound
core_sounds.initEngineSound(vehId, 0, 'art/sounds/engine.json', {nodeId})

-- Set audio blur
core_sounds.setAudioBlur(0.5)

See Also

  • Settings Audio - Volume controls

Core Snapshot

Manages saving and loading game snapshots (camera state) via the online API.

Core Terrain

Provides terrain queries: height, normal, and smooth normal lookups.

On this page

OverviewDependenciesPublic FunctionsGlobal Audio Parameters Updated Per FrameModule StateUsage ExamplesSee Also