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

cdefs Reference

Module defined in `lua/common/cdefs.lua`. Aggregator module that requires all FFI C definition files.

Module defined in lua/common/cdefs.lua. Aggregator module that requires all FFI C definition files.


Exports

No Lua exports. Simply requires the four cdef* modules:

  • common/cdefDebugDraw
  • common/cdefImgui
  • common/cdefGpuMesh
  • common/cdefMath

Internal Notes

  • Single entry point for loading all FFI type definitions
  • Should be required early in initialization before any code using these FFI types

cdefMath Reference

Module defined in `lua/common/cdefMath.lua`. Defines FFI C structs for vec3 and quat types used by the math library.

controlSystems Reference

Module defined in `lua/common/controlSystems.lua`. Provides PID controller implementations in both parallel and standard forms, commonly used for vehicle systems like cruise control, steering assist,

On this page

ExportsInternal Notes