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
calltracer ReferencedateUtils ReferencedebugDraw Referencefilterchain Referenceutils/ - Utility Modulesheatmap ReferencehttpJsonServer ReferenceinteractiveShell ReferencelanguageMap Referenceperf Referencepixellib ReferencesimpleHttpServer ReferencetorqueScriptParser ReferencewsUtils 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 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

filterchain Reference

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 Reference

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