RLS Studios
ProjectsPatreonCommunityDocsAbout
Join Patreon
BeamNG Modding Docs

Guides

Reference

cdefDebugDraw ReferencecdefGpuMesh ReferencecdefImgui ReferencecdefMath Referencecdefs ReferencecontrolSystems Referencecsvlib ReferencedelayLine Referencedequeue ReferencedevUtils ReferenceEvent Referenceextensions Referencefilters Referencegraphpath Referenceguihooks ReferenceinputFilters ReferenceinterpolatedMap Referenceintrospection ReferencejbeamWriter Referencejson-ast Referencejson ReferencejsonDebug ReferencejsonPrettyEncoderCustom Referencekdtreebox2d Referencekdtreebox3d Referencekdtreepoint3d Referencelpack ReferenceluaBinding ReferenceluaCore ReferenceluaProfiler Referencemathlib Referenceparticles Referencequadtree Referencesettings ReferencetcpServer ReferencetimeEvents Referenceutils Reference

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 Referencecommon

inputFilters Reference

Module defined in `lua/common/inputFilters.lua`. Defines global constants for input filter types used to classify input device sources.

Module defined in lua/common/inputFilters.lua. Defines global constants for input filter types used to classify input device sources.


Exports

All exports are global variables (not in a module table).

Variables

FILTER_KBD

  • Type: number (0)
  • Description: Filter constant for keyboard input

FILTER_PAD

  • Type: number (1)
  • Description: Filter constant for gamepad input

FILTER_DIRECT

  • Type: number (2)
  • Description: Filter constant for direct input (steering wheels, etc.)

FILTER_KBD2

  • Type: number (3)
  • Description: Filter constant for keyboard drift mode input

FILTER_AI

  • Type: string ("FILTER_AI")
  • Description: Filter constant for AI-controlled input

FILTER_NAME

  • Type: table
  • Description: Lookup table mapping numeric filter constants to human-readable names
  • Expected structure:
    • [0] = "Keyboard"
    • [1] = "Gamepad"
    • [2] = "Direct"
    • [3] = "KeyboardDrift"

Internal Notes

  • A filter value of -1 on the C++ side means "auto-detect" - it gets resolved to a valid >=0 filter before being sent to Lua
  • FILTER_AI is notably a string, not a number, unlike the other filter constants

guihooks Reference

Module defined in `lua/common/guihooks.lua`. Bridge between Lua and the JavaScript/CEF UI layer. Provides functions to trigger UI events, send streaming data, display messages, and graph debug data.

interpolatedMap Reference

Module defined in `lua/common/interpolatedMap.lua`. Provides 2D bilinear interpolation on structured data maps. Useful for looking up values in 2D tables like torque curves, gear ratio maps, etc.

On this page

ExportsVariablesFILTER_KBDFILTER_PADFILTER_DIRECTFILTER_KBD2FILTER_AIFILTER_NAMEInternal Notes