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

Dynamic Props

Replaces static forest items with interactive vehicle-based props at runtime using a pooling system. Props are spawned near the player and swapped back to forest items when out of range-enabling destr

Replaces static forest items with interactive vehicle-based props at runtime using a pooling system. Props are spawned near the player and swapped back to forest items when out of range-enabling destructible/interactive street furniture.


Public API

FunctionSignatureDescription
M.createDynamicProps(data)Creates a DynamicProps pool. data fields: forestItemName, propName, poolSize (default 10), spawnInViewRange (default 100), spawnOffset (default vec3(0,0,0)).
M.unloadAll()Despawns all active props, restores forest items, deletes prop vehicles, and reloads collision.
M.onUpdate()Per-frame: updates camera/player position and ticks all DynamicProps pools.
M.westCoastPole()Preset: replaces pole_city1 forest items with streetlight props (pool 1, range 100 m).
M.westCoastBin()Preset: replaces postbox_blue forest items with trashbin props (pool 9, range 150 m).

DynamicProps Object (Internal)

MethodDescription
DynamicProps:new(data)Constructor; sets up pool parameters.
DynamicProps:spawnProps()Spawns poolSize inactive vehicle props.
DynamicProps:findForestItems()Scans theForest for matching items, builds a quadtree for spatial queries.
DynamicProps:onUpdate()Queries nearby items via quadtree, swaps closest items to props and distant ones back.
DynamicProps:spawnProp(loc, propId)Teleports forest item underground, activates prop vehicle at original position.
DynamicProps:despawnProp(loc)Deactivates prop, resets broken meshes, restores forest item position.
DynamicProps:unload()Despawns all and deletes prop vehicle objects.

Usage Example

-- Replace mailboxes near the player with destructible trashbin props
core_dynamicProps.createDynamicProps({
  forestItemName = "postbox_blue",
  propName       = "trashbin",
  poolSize       = 5,
  spawnInViewRange = 120,
  spawnOffset    = vec3(0, 0, 0),
})

-- Later, clean up
core_dynamicProps.unloadAll()

Key Details

  • Uses quadtree module for efficient spatial queries.
  • Forest items are moved to vec3(0, 0, -999) when replaced.
  • be:reloadCollision(false, true) is called after spawn batch.
  • Props are sorted by distance; only poolSize nearest are active.

Devices (RGB Peripherals)

Manages RGB lighting on supported peripherals (e.g. keyboards, mice). Sets the BeamNG orange brand color when switching to non-drivable entities (unicycle, props, no vehicle) and resets to vehicle-dri

Environment

Comprehensive environment control: time of day, sky colors, clouds, fog, precipitation, gravity, temperature, and ground model physics. Manages the full weather/environment pipeline for levels.

On this page

Public APIDynamicProps Object (Internal)Usage ExampleKey Details