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
Bool (Flowgraph Node)Color (Flowgraph Node)Generic Set/Get Variable (Flowgraph Node)Get Variable (Flowgraph Node)Number (Flowgraph Node)Quat (Flowgraph Node)Set Variable (Flowgraph Node)String (Flowgraph Node)Transform (Flowgraph Node)Vec3 (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 Extensionsflowgraphnodestypes

String (Flowgraph Node)

- **Node Name:** `String`

Overview

  • Node Name: String
  • Category: provider
  • File: extensions/flowgraph/nodes/types/string.lua

Provides a constant string value. Supports single-line and multi-line text input in the editor.

Pin Schema

Output Pins

PinTypeDescription
valuestringThe string value

Internals

FieldPurpose
self.stringThe stored string (default: "Hello World")
self.multiLineWhether the editor shows a multi-line text input

How It Works

  1. init() - Sets self.string = "Hello World" and multiLine = false.
  2. work() - Outputs self.string to the output pin.
  3. drawCustomProperties() - Renders a checkbox to toggle multi-line mode. Shows either InputText or InputTextMultiline for editing.
  4. drawMiddle() - Shows up to 10 characters of the string inline, with ... for longer strings.

Serialization

  • Serializes newlines as \\n escape sequences.
  • On deserialization, restores newlines and reads from either nodeData.data.value (legacy) or nodeData.string.

Example Usage

-- This node outputs a constant string every frame.
-- Set in the node properties panel.
-- Equivalent to:
self.pinOut.value.value = "Hello World"

Additional Methods

C:_onDeserialized(nodeData)

Called after the node is deserialized (loaded from file). Restores runtime state from saved data.

Parameters:

  • nodeData

C:_onSerialize(res)

Called when the node is serialized (saved to file). Returns data to persist.

Parameters:

  • res

C:drawProperties()

Custom ImGui drawing function for the node editor.


See Also

  • Bool (Flowgraph Node) - Related reference
  • Color (Flowgraph Node) - Related reference
  • Generic Set/Get Variable (Flowgraph Node) - Related reference
  • FlowGraph Guide - Guide

Set Variable (Flowgraph Node)

- **Node Name:** `Set Variable`

Transform (Flowgraph Node)

- **Node Name:** `Transform`

On this page

OverviewPin SchemaOutput PinsInternalsHow It WorksSerializationExample UsageAdditional MethodsC:_onDeserialized(nodeData)C:_onSerialize(res)C:drawProperties()See Also