RLS Studios
ProjectsPatreonCommunityDocsAbout
Join Patreon
BeamNG Modding Docs

Guides

Reference

server/commands - Camera & Input Commandsge_utils - Game Engine Utility Functionsmain.lua - GE Lua Entry Point & Game Loopmap.lua - Navigation Graph (AI Road Map)screenshot.lua - Screenshot Systemserver/server - Level Loading & Game ServerserverConnection - Client-Server Connection Manager`setSpawnpoint` - Default Spawn Point Persistence`simTimeAuthority` - Simulation Time & Bullet Time Control`spawn` - Vehicle Spawning & Safe Placement`suspensionFrequencyTester` - Suspension Natural Frequency Analysis
Activity ManagerAudio Bank ManagerAudio Ribbon SystemBus Route ManagerCamera SystemCore Chat (IRC)Core CheckpointsCore Command HandlerCoupler Camera ModifierDevices (RGB Peripherals)Dynamic PropsEnvironmentFlowgraph ManagerForestFun StuffGame ContextGame StateGround Marker ArrowsGround MarkersHardware InfoHighscoresHotlappingInventoryJob SystemLap TimesLevelsLoad Map CommandMetricsMod ManagerMultiseatMultiseat CameraMulti SpawnOnlinePaths (Camera Paths)Quick Access (Radial Menu)Recovery PromptRemote ControllerReplayRepositoryRope Visual TestScheme Command ServerCore SnapshotCore SoundsCore TerrainTraffic SignalsTrailer RespawnVehicle Active PoolingVehicle Bridge (GE ↔ VLua Communication)Vehicle MirrorsVehicle PaintsCore VehiclesVehicle TriggersVersion UpdateWeather SystemWindows Console

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 Extensionscore

Repository

Online mod repository client. Handles mod browsing, subscribing/unsubscribing, downloading with progress, update queuing, and synchronization with BeamNG servers.

Online mod repository client. Handles mod browsing, subscribing/unsubscribing, downloading with progress, update queuing, and synchronization with BeamNG servers.


Public Functions

FunctionSignatureDescription
M.requestMods(query, orderBy, order, page, categories)Searches the mod repository
M.requestMyMods(query, orderBy, order, page, categories)Lists the user's own mods
M.requestMod(modId, callback)Gets detailed info for a single mod
M.requestModOffline(modId)Gets mod info from local data when offline
M.modSubscribe(modId, useOptOut)Subscribes to a mod and queues download
M.modUnsubscribe(modId)Unsubscribes and deletes the mod
M.installMod(uri, filename, localPath, callback)Downloads and installs a mod ZIP
M.addUpdateQueue(data)Adds a mod to the update/download queue
M.uiUpdateQueue()Sends queue state to UI
M.updateAllMods()Starts downloading all queued updates
M.updateOneMod(id)Downloads a specific queued mod
M.updateAllMissing()Downloads all missing mods
M.changeStateUpdateQueue(fname, state)Updates a queue entry's state
M.onUpdate(dt)Sends download progress to UI when dirty
M.setRepoMsg(data)Sets repository message from server
M.setRepoCmd(data)Sets repository command from server
M.setrepoAutomationMsg(data)Sets Automation message from server
M.onModManagerReady()Processes pending subscriptions and server commands
M.uiShowRepo()Opens the mod repository UI
M.uiShowMod(modId)Opens a specific mod's detail page
M.runSubscription()Processes deferred subscription queue
M.onOnlineStateChanged(connected)Runs subscriptions when online
M.requestSubscriptions()Requests repository subscription data.

Update Queue Entry

FieldTypeDescription
idstringMod repository ID
filenamestringZIP filename
uristringDownload URI path
statestring"waiting", "updating", "downloading", "downloaded", "done"
reasonstring"update", "missing", "subscription"
updatebooleanWhether download is authorized

Download Flow

  1. modSubscribe or checkUpdate adds entries to updateQueue
  2. updateDownloadQueue starts parallel downloads (up to modNumParallelDownload setting)
  3. installMod downloads via core_online.apiCall with progress callback
  4. On completion, old mod versions are cleaned up, new mod is mounted
  5. modUpdateSuccess API call reports results to server

Opt-Out System

Users can opt out of auto-subscriptions. Opt-out state is stored in /settings/cloud/mods-optout.json. When useOptOut is true, opted-out mods are silently ignored.


Server Commands (repoCmd)

CommandAction
forceInstallAuto-subscribe to listed mod IDs
forceRemoveAuto-unsubscribe from listed mod IDs
forceDisableDeactivate listed mods

Module State

VariableTypeDefault
requestSubscriptionsvariesrequestSubscriptions

Notes

  • Downloads go to /mods/repo/ by default.
  • Parallel download count is configurable via modNumParallelDownload setting (default 3).
  • Unpacked mods cannot be updated - user must pack first.
  • Duplicate detection prevents the same mod ID from being queued twice.
  • Uses core_online.apiCall for all server communication.

See Also

  • modmanager - Local mod management
  • online - Network API layer

Replay

Replay recording and playback system. Records vehicle physics state to `.rpl` files, plays back with variable speed, seeking, and frame stepping. Supports mission auto-recording and user-saved replays

Rope Visual Test

ImGui sandbox for creating, editing, and testing rope visual simulations. Provides a full editor for rope physics parameters, animations, node interaction, performance tracking, and save/load.

On this page

Public FunctionsUpdate Queue EntryDownload FlowOpt-Out SystemServer Commands (repoCmd)Module StateNotesSee Also