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

File Exists (Flowgraph Node)

- **Node Name:** `File Exists`

Overview

  • Node Name: File Exists
  • Category: once_p_duration
  • File: extensions/flowgraph/nodes/util/fileExists.lua

Checks if a file exists and outputs both flow and boolean results.

Pin Schema

Input Pins

PinTypeDescription
filestringFile path or name to check
extensionstring (hidden)Optional extension appended to the file string

Output Pins

PinTypeDescription
existsflowFires if the file exists
missingflowFires if the file does not exist
existsBoolboolBoolean reflecting file existence
pathstringResolved absolute file path

Internals

Key Methods

MethodDescription
workOnce()Resolves the file path and checks existence via mgr:getRelativeAbsolutePath()

How It Works

  1. Concatenates the file input with the optional extension input.
  2. Calls self.mgr:getRelativeAbsolutePath({fileName}, true) which resolves relative paths and checks existence.
  3. Sets the exists/missing flow pins, the existsBool boolean, and outputs the resolved path.

Usage Example

-- Check if a save file exists before loading:
-- [File Exists] file="savegame" extension=".json"
--    → exists → [Load Data]
--    → missing → [Create New Save]

Key Dependencies

  • self.mgr:getRelativeAbsolutePath() - resolves and validates file paths within the flowgraph context

See Also

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

Waypoints Distance (Flowgraph Node)

- **Node Name:** `Waypoints Distance`

Get First Element of Table (Flowgraph Node)

- **Node Name:** `Get First Element of Table`

On this page

OverviewPin SchemaInput PinsOutput PinsInternalsKey MethodsHow It WorksUsage ExampleKey DependenciesSee Also