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
Career BranchesCareer System CoreCareer Save System
Career Computer MenuCareer Fuel SystemInspect VehicleVehicle InventoryLinear TutorialLoaner VehiclesCareer LogLogbookMarketplaceMission WrapperCareer Painting ModuleCareer Part Inventory ModuleCareer Part Shopping ModuleCareer Payment ModuleCareer Permissions ModuleCareer Playbook Writer ModuleCareer Player Abstract ModuleCareer Player Attributes ModuleCareer Player Driving ModuleCareer Quick Travel ModuleCareer Rentals ModuleCareer Reputation ModuleCareer Spawn Points ModuleCareer Speed Traps ModuleCareer Test Drive ModuleCareer Tether ModuleCareer Tuning ModuleCareer UI Utils ModuleCareer Unlock Flags ModuleCareer Value Calculator ModuleVehicle Class GroupingVehicle Deletion ServiceVehicle PerformanceVehicle Shopping
General MilestonesMilestones Core
Branch MilestonesDelivery MilestonesInsurance MilestonesMission MilestonesMoney MilestonesSpeed Trap MilestonesStatistic Milestones

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 ExtensionscareermodulesmilestonesgeneralMilestones

Statistic Milestones

Generates milestones based on `gameplay_statistic` metrics: distance driven, playtime, rollovers, and airtime.

Generates milestones based on gameplay_statistic metrics: distance driven, playtime, rollovers, and airtime.


Public API

FunctionSignatureDescription
M.registerStastisticCallback(milestone)Register a statistic threshold callback
M.clearStatisticCallback(milestone)Remove a registered callback

Hook Handlers

HookPurpose
M.onGeneralMilestonesCollectGenerate statistic milestones
M.onGeneralMilestonesSetupCallbacksRegister statistic callbacks
M.onGeneralMilestoneClaimedRe-register callback for next step

Generated Milestones

Distance Driven

PropertyValue
IDstat_distance
Label"Long Distance Driver"
Stat keyvehicle/total_odometer.length
Steps10, 20, 35, 60, 90, 145, 215, 300 km
RewardsmajorLinear

Playtime

PropertyValue
IDstat_playtime
Label"Play the Game"
Stat keygeneral/mode/career.time
Steps5, 10, 15, 20, 25, 30, 35, 40 hours
RewardsmajorLinear

Rollovers

PropertyValue
IDstat_rollover
Label"Rollovers"
Stat keyvehicle/rollover
StepsExponential: floor(pow(step-1, 1.5)) * 5
RewardsmajorLinear

Airtime

PropertyValue
IDjump
Label"Airtime"
Stat keyvehicle/airtime.time
Stepsfloor(pow(step, 1.5)) * 30 seconds
RewardsmajorLinear

All milestones: 8 max steps, odometer/timer/carToWheels/jump icons, gray color, {statistic=true, general=true} filter.

Callback System

Uses gameplay_statistic.callbackRegister to fire when a metric reaches a target value. Callbacks are re-registered after each claim to watch the next step.


See Also

  • general - Milestone collection system
  • milestones - Reward functions

Speed Trap Milestones

Generates milestones for speed trap interactions: all-time speed records and total trigger counts.

Client Canvas

Manages the main game canvas (render window) creation and cursor visibility.

On this page

Public APIHook HandlersGenerated MilestonesDistance DrivenPlaytimeRolloversAirtimeCallback SystemSee Also