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

Forest

Utility wrapper for accessing the Forest scene object. Caches the forest object ID for efficient repeated lookups.

Utility wrapper for accessing the Forest scene object. Caches the forest object ID for efficient repeated lookups.


Public API

FunctionSignatureDescription
M.getForestObject() → Forest|nilReturns the first Forest object in the scene, caching its ID. Returns nil if no forest exists.

Usage Example

local forest = core_forest.getForestObject()
if forest then
  local items = forest:getData():getItems()
  log('I', 'test', 'Forest has ' .. #items .. ' items')
end

Key Details

  • Searches via scenetree.findClassObjects("Forest") on first call, then caches forestId.
  • Cache is invalidated if the cached object no longer exists in the scenetree.
  • Used by core_dynamicProps and other systems that need to manipulate forest items.

Flowgraph Manager

Central manager for BeamNG's visual scripting system (flowgraphs). Handles creation, loading, serialization, and per-frame execution of flowgraph manager instances.

Fun Stuff

Provides sandbox "fun" actions accessible from the radial quick-access menu: vehicle destruction, physics forces, color randomization, random vehicles, and more.

On this page

Public APIUsage ExampleKey Details