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

Generate License Plate

- **Node Name:** `Generate License Plate`

Overview

  • Node Name: Generate License Plate
  • Category: once_instant
  • File: extensions/flowgraph/nodes/vehicle/generateLicensePlate.lua

Generates a random license plate text and applies it to a vehicle. Clears any existing plate text first, then regenerates and sets a new one.

Pin Schema

Input Pins

PinTypeDescription
vehIdnumberID of vehicle to apply the plate to. If empty, player vehicle is used

Internals

Key Methods

MethodDescription
workOnce()Clears the current plate, regenerates a random plate string, and applies it to the vehicle

How It Works

  1. Resolves the vehicle ID from the pin or defaults to be:getPlayerVehicleID(0).
  2. Gets the vehicle object via getObjectByID(vehId) (falls back to getPlayerVehicle(0)).
  3. Calls core_vehicles.setPlateText(nil, nil, nil, nil, true) to clear/reset the plate text system.
  4. Generates new text via core_vehicles.regenerateVehicleLicenseText(veh).
  5. Applies the generated text with core_vehicles.setPlateText(generatedText, vehId).

Usage Example

-- In a flowgraph:
-- [Spawn Vehicle] → vehId → [Generate License Plate] → [Continue]

-- Programmatic equivalent:
local veh = getPlayerVehicle(0)
local vehId = veh:getId()
core_vehicles.setPlateText(nil, nil, nil, nil, true)
local text = core_vehicles.regenerateVehicleLicenseText(veh)
core_vehicles.setPlateText(text, vehId)

Key Dependencies

  • core_vehicles.setPlateText() - sets or clears license plate text on a vehicle
  • core_vehicles.regenerateVehicleLicenseText() - generates a random plate string based on game settings

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

Freeze Vehicle

- **Node Name:** `Freeze Vehicle`

Get Vehicle Active

- **Node Name:** `Get Vehicle Active`

On this page

OverviewPin SchemaInput PinsInternalsKey MethodsHow It WorksUsage ExampleKey DependenciesSee Also