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

Add Or Remove Player Attribute

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

Overview

  • Name: Add Or Remove Player Attribute
  • Category: once_instant
  • File: lua/ge/extensions/flowgraph/nodes/career/playerAttribute.lua
  • Pattern: Class-based (C = {}, returns _flowgraph_createNode(C))

Description

Adds or removes a specified amount of a player attribute (e.g., money) from the current career save slot. Executes once per trigger, with a reset mechanism.

Pin Schema

Input Pins

PinTypeDefaultDescription
addbooltrue (hardcoded)true adds the amount, false removes it
amountnumber0 (hardcoded)The amount to add or remove
playerAttributestring"money" (hardcoded)The attribute name
reasonstring""Reason label for the change

Behavior

  • work() checks if career is active and the node hasn't already fired. If both conditions are met, calls career_modules_playerAttributes.addAttributes() with the attribute, amount (negated if add is false), and a reason label.
  • Sets an internal flag to prevent re-execution until reset pin or _executionStarted() clears it.

Key APIs Used

  • career_career.isActive()
  • career_modules_playerAttributes.addAttributes()

Tags

#flowgraph #node #ge #career #playerAttribute


Additional Exports

onNodeReset()

  • 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

On Vehicle Shopping Event

- **Name:** `On Vehicle Shopping Event`

Set Fuel Level

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

On this page

OverviewDescriptionPin SchemaInput PinsBehaviorKey APIs UsedTagsAdditional ExportsonNodeReset()See Also