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
Add To Inventory (Flowgraph Node)Career Vehicle Select (Flowgraph Node)Set Tutorial Step (Flowgraph Node)Complete Quest (Flowgraph Node)On Custom Tow (Flowgraph Node)Garage Computer Util (Flowgraph Node)Garage Tutorial Util (Flowgraph Node)Get Tutorial Step (Flowgraph Node)Get Tutorial Flag (Flowgraph Node)Logbook Entry (Flowgraph Node)Menu Closed (Flowgraph Node)On Garage Event (Flowgraph Node)On Intro Popup Career Closed (Flowgraph Node)On Poi Prompt Shown (Flowgraph Node)On Mission Start/Stop (Flowgraph Node)On RefuelingOn Testdrive ChangedOn Vehicle Shopping EventAdd Or Remove Player AttributeSet Fuel LevelSet Tutorial FlagTasklist HeaderVehicle Group by Performance Class

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 Extensionsflowgraphnodescareer

On Refueling

- **Name:** `On Refueling`

Overview

  • Name: On Refueling
  • Category: repeat_instant
  • File: lua/ge/extensions/flowgraph/nodes/career/onRefueling.lua
  • Pattern: Class-based (C = {}, returns _flowgraph_createNode(C))

Description

Detects various events associated with the refueling process in career mode. Listens for transaction start/end, fuel filling completion, and payment events via hook callbacks.

Pin Schema

Output Pins

PinTypeDescription
openedMenuflow (impulse)Fires once when the refueling menu is opened
tankFilledflow (impulse)Fires once when a tank is completely filled
currentlyFuelingflowActive while fueling is in progress
tankPercentnumberFilled percentage of the tank (0–1)
paidPriceflow (impulse)Fires once when the player pays
closedMenuflow (impulse)Fires once when the refueling menu is closed

Behavior

  • work() resets all flow pins each frame, then applies queued flags from hook callbacks. Reads live fueling state from career_modules_fuel.isCurrentlyFueling() and calculates aggregate tank percentage from career_modules_fuel.getFuelData().
  • Hook callbacks (onRefuelingStartTransaction, onRefuelingStopFueling, onPaidRefuelling, onRefuelingEndTransaction) set flags that are consumed on the next work() call.
  • Flags are cleared after each frame via table.clear(self.flags).

Key APIs Used

  • career_modules_fuel.isCurrentlyFueling()
  • career_modules_fuel.getFuelData()

Tags

#flowgraph #node #ge #career #refueling


Additional Exports

init()

  • name - string - (see source)

  • description - string - (see source)

  • color - any - (see source)

  • icon - any - (see source)

  • category - string - (see source)

  • pinSchema - table - (see source)

  • dependencies - table - (see source)


See Also

  • Add To Inventory (Flowgraph Node) - Related reference
  • Career Vehicle Select (Flowgraph Node) - Related reference
  • Set Tutorial Step (Flowgraph Node) - Related reference
  • FlowGraph Guide - Guide

On Mission Start/Stop (Flowgraph Node)

- **Node Name:** `On Mission Start/Stop`

On Testdrive Changed

- **Name:** `On Testdrive Changed`

On this page

OverviewDescriptionPin SchemaOutput PinsBehaviorKey APIs UsedTagsAdditional Exportsinit()See Also