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
Route Distance (Flowgraph Node)Closest Road (Flowgraph Node)Custom Lua (Flowgraph Node)Distance Between (Flowgraph Node)Waypoints Distance (Flowgraph Node)File Exists (Flowgraph Node)Get First Element of Table (Flowgraph Node)Get Level Data (Flowgraph Node)Get Map Objects IDs by DynField (Flowgraph Node)Get Table Value By Key (Flowgraph Node)GHOST (Flowgraph Node)Hide Loading Screen (Flowgraph Node)Color HSV (Flowgraph Node)Line Point From Xnorm (Flowgraph Node)Load Level (Flowgraph Node)Load Project (Flowgraph Node)On Menu (Flowgraph Node)Perlin Noise (Flowgraph Node)Pop Action Map (Flowgraph Node)Get Project InfoPush Action MapRandom ColorRandom NumberRandom QuaternionRandom VectorRoad PropertiesGet Navgraph RouteRoute PositionTemplate NodeTimeTimed SequenceTo NumberTo StringWorld Editor Open

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 Extensionsflowgraphnodesutil

Get Table Value By Key (Flowgraph Node)

- **Node Name:** `Get Table Value By Key`

Overview

  • Node Name: Get Table Value By Key
  • Category: repeat_instant
  • File: extensions/flowgraph/nodes/util/getTableValueByKey.lua

Retrieves a value from a table using a given key (string or number).

Pin Schema

Input Pins

PinTypeDescription
valuetable (generic)The table to look up
keystring or numberThe key to retrieve the value for

Output Pins

PinTypeDescription
valueanyThe value found at the given key

Internals

Key Methods

MethodDescription
work()Performs table[key] lookup and outputs the result, or nil if table is absent

How It Works

  1. Checks if the input table exists.
  2. Indexes the table with the provided key: table[key].
  3. If the result is non-nil, outputs it. Otherwise outputs nil.
  4. If the table input itself is nil, explicitly sets output to nil.

Usage Example

-- Look up a vehicle property:
-- [Get Vehicle Data] → table → [Get Table Value By Key] key="model"
--                                → value → [Display Model Name]

-- Access array element by index:
-- [Get Waypoints] → table → [Get Table Value By Key] key=3
--                             → value → [Use Third Waypoint]

Key Dependencies

None - pure Lua table indexing utility.


See Also

  • Route Distance (Flowgraph Node) - Related reference
  • Closest Road (Flowgraph Node) - Related reference
  • Custom Lua (Flowgraph Node) - Related reference
  • FlowGraph Guide - Guide

Get Map Objects IDs by DynField (Flowgraph Node)

- **Node Name:** `Get Map Objects IDs by DynField`

GHOST (Flowgraph Node)

- **Node Name:** `GHOST`

On this page

OverviewPin SchemaInput PinsOutput PinsInternalsKey MethodsHow It WorksUsage ExampleKey DependenciesSee Also