RLS Studios
ProjectsPatreonCommunityDocsAbout
Join Patreon
BeamNG Modding Docs

Guides

Reference

Server CommandsGE UtilitiesGame Engine MainNavigation GraphScreenshot CaptureServerServer ConnectionSpawnpoint ManagerSimulation TimeVehicle SpawningSuspension Frequency Tester
Flowgraph Base ModuleFlowgraph Base NodeFlowgraph Base State NodeFlowgraph Node BuilderFlowgraph GraphFlowgraph Group HelperFlowgraph LinkFlowgraph ManagerNew Node TemplateFlowgraph PinFlowgraph States ManagerFlowgraph UtilsFlowgraph Variable Storage
Align For CouplingApply Velocity to VehicleBoost VehicleSet Vehicle ColorsCustom Parts Config ProviderEnter VehicleFlip UprightFreeze VehicleGenerate License PlateGet Vehicle ActiveGet Electrics ValueGet GearboxmodeGet Powertrain DataGravity ForceDistance From GroundHas Coupler TagIs CoupledIs Player UsableKeep VehicleMove Vehicle ToOn Cannon FiredOn Vehicle DestroyedOn Vehicle ResetOn Vehicle SpawnedOn Vehicle SwitchedPlayer UsableRandom Config ProviderRecover In PlaceRemove VehicleTimeline ReplaySet Vehicle ActiveSet Gearbox ModeSet IgnitionSet License PlateSet LightbarSet LightsShift to Gear IndexSpawn VehicleVehicle StatesTeleport To Last RoadToggle Vehicle ControlsMove To ShowroomVehicle TouchProps TouchStatic Object TouchTrack VehicleTrailer Respawn ControlVehicle Config ProviderGet Vehicle DataGet Vehicle DataGet Vehicle BoundsVehicle PingGet Vehicle Wheel Center

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 Extensionsflowgraphnodesvehicle

Random Config Provider

- **Node Name:** `Random Config Provider`

Overview

  • Node Name: Random Config Provider
  • Category: once_instant
  • File: extensions/flowgraph/nodes/vehicle/randomConfigProvider.lua

Provides a random vehicle configuration from the available vehicles. Filters to cars with a top speed above 10, and randomly selects a model, config, and paint color.

Pin Schema

Output Pins

PinTypeDescription
modelstringThe model key of the selected vehicle
configstringThe config key of the selected vehicle
namestring (hidden)The model name of the selected vehicle
colorcolor (hidden)A randomly selected paint from the model's available paints

Internals

Key Methods

MethodDescription
init()Initializes empty model/config tables, sets vehType to 'Car'
_executionStarted()Builds the options list from all available vehicles (cached)
workOnce()Randomly picks a model, config, and paint from the options

Options Building (_executionStarted)

The node builds a list of eligible vehicles on first execution:

  1. Fetches all vehicles via core_vehicles.getVehicleList().vehicles.
  2. Filters to vehicles where model.Type == 'Car'.
  3. For each car model, collects configs with Top Speed > 10.
  4. Extracts available paint names from the model data.
  5. Only includes models that have at least one qualifying config.

How It Works

  1. On execution start, builds a cached list of car models with their configs and paints.
  2. When workOnce() runs, it randomly selects:
    • A model from the options list
    • A config from that model's configs
    • A paint color from the model's available paints (if any)
  3. Outputs the selected model key, config key, display name, and paint.

Usage Example

-- In a flowgraph - spawn a random car:
-- [Random Config Provider] → (model)  → [Spawn Vehicle].model
--                          → (config) → [Spawn Vehicle].config
--                          → (color)  → [Spawn Vehicle].color

-- The underlying Lua for random selection:
local vehs = core_vehicles.getVehicleList().vehicles
-- Filter to cars, pick random model + config
local model = vehs[math.random(#vehs)]
local config = model.configs[math.random(#model.configs)]

Key Dependencies

  • core_vehicles.getVehicleList() - retrieves all available vehicle data
  • core_vehicles.getModel() / core_vehicles.getConfig() - vehicle metadata access

See Also

  • Align for Coupling (Flowgraph Node) - Related reference
  • Apply Velocity to Vehicle (Flowgraph Node) - Related reference
  • Boost Vehicle (Flowgraph Node) - Related reference
  • FlowGraph Guide - Guide

Player Usable

- **Node Name:** `Player Usable`

Recover In Place

- **Node Name:** `Recover In Place`

On this page

OverviewPin SchemaOutput PinsInternalsKey MethodsOptions Building (_executionStarted)How It WorksUsage ExampleKey DependenciesSee Also