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

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 Extensionscareermodules

Loaner Vehicles

M.dependencies = {"util_stepHandler"}

Dependencies

M.dependencies = {"util_stepHandler"}

Manages loaner (rental) vehicles from organizations. Handles spawning loaned vehicles at facilities, tracking walk-away timeouts, returning vehicles with reputation penalties for damage, and formatting UI data.


Internal State

FieldTypeDescription
M.spawnAndLoanVehiclevariesAssigned as spawnAndLoanVehicle

Public API

FunctionSignatureDescription
M.markForSpawning(offer)Toggle-mark a loaner offer for batch spawning
M.unmarkAllForSpawning()Clear all marked loaner offers
M.spawnAllOffers()Spawn all marked loaners with fade sequence
M.returnVehicle(inventoryId, callback)Return loaned vehicle, apply damage reputation penalty
M.getLoanedVehiclesByOrg(organizationId) → tableGet loaned vehicles for an organization
M.getLoaningOrgsOfVehicle(vehId) → tableGet organizations that own a vehicle/trailer
M.formatLoanerOfferForUi(facility) → tableFormat available loaner offers for UI
M.formatSpawnedLoanersForUi() → tableFormat currently spawned loaners for UI

Hook Handlers

HookPurpose
M.onUpdateMonitor walk-away distance from loaned vehicles
M.onVehicleAddedTrack vehicle addition during spawn sequence

Walk-Away Timer

When a player moves >100m from a loaned work vehicle:

  1. Warning message shown immediately
  2. 300-second countdown starts
  3. At 60 seconds remaining, second warning shown
  4. At 0 seconds, vehicle auto-returned to owner
  5. Coming within 95m cancels the timer

Loaner Offer Disable Reasons

ReasonDescription
noSpaceNo free parking spots at facility
limitAlready have a loaned non-trailer from this org
locked (reputation)Requires higher reputation level
locked (delivery)Requires higher delivery skill level

See Also

  • inventory - Vehicle inventory management
  • delivery - Delivery system using loaners

Linear Tutorial

M.dependencies = {'career_career'}

Career Log

M.dependencies = {"career_saveSystem"}

On this page

DependenciesInternal StatePublic APIHook HandlersWalk-Away TimerLoaner Offer Disable ReasonsSee Also