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

Set Fuel Level

- **Name:** `Set Fuel Level`

Overview

  • Name: Set Fuel Level
  • Category: once_f_duration
  • File: lua/ge/extensions/flowgraph/nodes/career/setFuelLevel.lua
  • Pattern: Class-based (C = {}, returns _flowgraph_createNode(C))

Description

Sets the fuel level for a vehicle as a percentage of max capacity. Applies the same multiplier across all energy storage tanks. Uses an async request/response pattern via vehicle bridge.

Pin Schema

Input Pins

PinTypeDescription
vehIdnumberVehicle ID to affect (defaults to player vehicle if nil)
multnumberFuel multiplier as a percentage of max fuel (0–1)

Behavior

  • workOnce() resolves the target vehicle (by ID or player vehicle), then requests energy storage data asynchronously via core_vehicleBridge.requestValue(). Sets duration state to 'started'.
  • work() waits for the async response. Once received, iterates all tanks and sets each to maxEnergy * mult using core_vehicleBridge.executeAction('setEnergyStorageEnergy', ...). Sets duration state to 'finished'.
  • onNodeReset() clears all internal state and sets duration to 'inactive'.

Key APIs Used

  • core_vehicleBridge.requestValue(veh, callback, 'energyStorage')
  • core_vehicleBridge.executeAction(veh, 'setEnergyStorageEnergy', tankName, energy)
  • scenetree.findObjectById()
  • getPlayerVehicle(0)

Tags

#flowgraph #node #ge #career #fuel


Additional Exports

init()

  • name - string - (see source)

  • color - any - (see source)

  • icon - any - (see source)

  • description - string - (see source)

  • category - string - (see source)

  • pinSchema - table - (see source)

  • tags - 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

Add Or Remove Player Attribute

- **Name:** `Add Or Remove Player Attribute`

Set Tutorial Flag

- **Name:** `Set Tutorial Flag`

On this page

OverviewDescriptionPin SchemaInput PinsBehaviorKey APIs UsedTagsAdditional Exportsinit()See Also