RLS Studios
ProjectsPatreonCommunityDocsAbout
Join Patreon
BeamNG Modding Docs

Guides

Reference

Debug DrawingGPU Mesh StructsImGui FFIMath Structs (FFI)FFI C DefinitionsPID ControllersCSV LibraryDelay LineDequeDevelopment UtilitiesEvent ReferenceExtension SystemSignal FiltersGraph PathfindingUI BridgeInput Filter Constants2D Bilinear InterpolationIntrospectionJBeam Pretty PrinterJSON AST ParserSJSON ParserJSON Debug ParserJSON Pretty PrinterK-D Tree (2D Boxes)K-D Tree (3D)K-D Tree (3D)Lua SerializerC++/Lua BindingLua CoreLua ProfilerMath LibraryParticlesQuadtreeSettingsTCP ServerTimer SchedulerUtility Library
Call TracerDate UtilsDebug DrawingFilter Chainutils/ - Utility ModulesHeatmap GeneratorHTTP JSON ServerInteractive ShellLanguage MapPerformance ProfilerPixel Drawing LibraryHTTP ServerTorqueScript ParserWebSocket Server

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 Referencecommonutils

utils/ - Utility Modules

General-purpose utility modules for debugging, profiling, networking, graphics, and data processing.

General-purpose utility modules for debugging, profiling, networking, graphics, and data processing.

FileDescription
calltracer.luaFunction call graph recorder, exports to TGF for yEd visualization
dateUtils.luaISO 8601 date parsing and time-since calculations
debugDraw.luaFFI-based debug drawing API (spheres, lines, text, triangles) with packed colors
filterchain.luaFunctional signal processing filter chain (smooth, interval, scale, digitize)
heatmap.luaSVG heatmap generator for vehicle path visualization
httpJsonServer.luaSimple REST/JSON HTTP server using LuaSocket
interactiveShell.luaInteractive Lua REPL for runtime debugging
languageMap.luaISO 639-1/3166-1 language and country code mappings
perf.luaPerformance profiler with windowed stats and CSV export
pixellib.luaPixel drawing library with RGBA buffers, primitives, and text
simpleHttpServer.luaHTTP server with static files, JSON, routing, and templating
simpleProfiler/report.luaFlame chart HTML report generator using Mustache templates
torqueScriptParser.luaTorqueScript source code parser (PEG-based AST)
wsUtils.luaWebSocket server creation with auto network adapter detection

See Also

  • calltracer Reference - Related reference
  • dateUtils Reference - Related reference
  • debugDraw Reference - Related reference
  • Common Libraries Overview - Guide

Filter Chain

Module defined in `lua/common/utils/filterchain.lua`. Functional programming filter chain for signal processing - chains composable filter objects (smooth, interval, scale, digitize, etc.) into a proc

Heatmap Generator

Module defined in `lua/common/utils/heatmap.lua`. Generates SVG heatmap visualizations of vehicle paths on the game map, including road overlay.

On this page

See Also