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
Load Project (Flowgraph Node)Receive Message (Flowgraph Node)Send Message (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 Extensionsflowgraphnodesthread

Send Message (Flowgraph Node)

- **Node Name:** `Send Message`

Overview

  • Node Name: Send Message
  • Category: (default)
  • File: extensions/flowgraph/nodes/thread/sendMessage.lua

Sends a message to another running flowgraph project. Used for inter-project communication.

Pin Schema

Input Pins

PinTypeDescription
flowflowIn flow (fixed)
resetflowImpulse to allow re-sending (fixed)
networkedboolIf networked message (hidden, fixed)
idnumberID of the receiver project (-1 for parent) (fixed)
namestringName of the message (fixed)

Custom input pins can be added for message data (supports string, number, bool, any, table, vec3, quat, color).

Output Pins

PinTypeDescription
flowflowPasses through input flow

Behavior

  • init() - Enables pin saving and custom input pins.
  • work() - When flow is active, id is set, and not already done:
    • Collects all non-fixed pin values into a data table
    • Sends via thread:sendMessage() or thread:sendNetworkedMessage() depending on networked flag
    • Marks as done (won't send again until reset)
  • Reset - The reset impulse clears the done flag.

How It Works

  1. Get the target project ID from a loadProject node (or use -1 for the parent project).
  2. Set the message name.
  3. Add custom input pins for any data to include.
  4. On execution, the message is sent once. Use reset to send again.
-- Send a score update to project ID 2:
-- id = 2, name = "score_update", custom pin "score" = 100
-- Calls: self.mgr.modules.thread:sendMessage(2, {score = 100}, self)

-- Send to parent project:
-- id = -1

Key Dependencies

  • self.mgr.modules.thread:sendMessage() - Local message delivery
  • self.mgr.modules.thread:sendNetworkedMessage() - Networked message delivery

Additional Methods

C:_executionStarted()

Called when graph execution starts. Used for initialization/reset.

C:drawMiddle(builder, style)

Custom ImGui drawing in the middle section of the node in the editor.

Parameters:

  • builder
  • style

See Also

  • Load Project (Flowgraph Node) - Related reference
  • Receive Message (Flowgraph Node) - Related reference
  • FlowGraph Guide - Guide

Receive Message (Flowgraph Node)

- **Node Name:** `Receive Message`

Race CP Reached (Flowgraph Node)

- **Node Name:** `Race CP Reached`

On this page

OverviewPin SchemaInput PinsOutput PinsBehaviorHow It WorksKey DependenciesAdditional MethodsC:_executionStarted()C:drawMiddle(builder, style)See Also