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
Format String (Flowgraph Node)Match String (Flowgraph Node)Concat (Flowgraph Node)SubString (Flowgraph Node)

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 Extensionsflowgraphnodesstring

SubString (Flowgraph Node)

- **Node Name:** `SubString`

Overview

  • Node Name: SubString
  • Category: simple
  • File: extensions/flowgraph/nodes/string/subString.lua

Extracts a substring from the input string using start and end indices.

Pin Schema

Input Pins

PinTypeDescription
valuestringThe string to extract from

Output Pins

PinTypeDescription
valuestringThe resulting substring

Data Properties

PropertyTypeDefaultDescription
fromnumber0Start index (1-based in Lua)
tonumber-1End index (-1 means end of string)

Behavior

  • init() - Sets default from = 0 and to = -1.
  • work() - Calls string.sub(input, from, to) and outputs the result.
  • drawMiddle() - Displays from / to values in the node body.

How It Works

  1. Set the from and to data properties to define the substring range.
  2. Connect a string to the input value pin.
  3. The output value pin receives the extracted substring.
-- Example: from = 1, to = 5
-- Input: "Hello World"
-- Output: "Hello"

-- Example: from = 7, to = -1
-- Input: "Hello World"
-- Output: "World"

-- Negative indices count from the end:
-- from = -5, to = -1 → last 5 characters

Key Dependencies

  • Lua built-in string.sub

See Also

  • Format String (Flowgraph Node) - Related reference
  • Match String (Flowgraph Node) - Related reference
  • Concat (Flowgraph Node) - Related reference
  • FlowGraph Guide - Guide

Concat (Flowgraph Node)

- **Node Name:** `Concat`

Get Ultrasonic Readings (Flowgraph Node)

- **Node Name:** `Get Ultrasonic Readings`

On this page

OverviewPin SchemaInput PinsOutput PinsData PropertiesBehaviorHow It WorksKey DependenciesSee Also