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
Delivery Cargo CardsDelivery Cargo ScreenDelivery GeneralDelivery GeneratorDelivery Pages (Logbook)Delivery Parcel ManagerDelivery Parcel ModifiersDelivery Precision ParkingDelivery ProgressDelivery TasklistDelivery TutorialDelivery Vehicle Offer ManagerDelivery Vehicle Tasks

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 Extensionscareermodulesdelivery

Delivery Precision Parking

M.dependencies = {"util_stepHandler"}

Dependencies

M.dependencies = {"util_stepHandler"}

Calculates precision parking scores for delivery drop-offs based on vehicle alignment, position, and parking spot dimensions. Awards bonus/penalty to rewards.


Module Info

FieldValue
Pathextensions/career/modules/delivery/precisionParking.lua
Globalcareer_modules_delivery_precisionParking
Dependenciesutil_stepHandler

Public API

FunctionSignatureDescription
calculateVehiclePrecisionScore(vehId, targetParkingSpot)Calculates score from angle, side offset, forward offset. Returns precisionData table
getPrecisionParkingBonus(precisionData)Converts precision score into reward multipliers (money, logistics, skill, reputation)
calculateVehiclePrecisionParking(taskData)Full pipeline for vehicle delivery: calculate + apply
calculateCargoPrecisionParking(cargo, targetLocation)Full pipeline for cargo delivery: calculate + apply
getPrecisionParkingConfig()Returns the scoring configuration constants
debugPrecisionParking(vehId, targetParkingSpot)Debug wrapper for testing

| M.onCareerActivated | () | - |

Scoring Levels

LevelScore RangeMoneyLogistics XPSkill XPReputation
Perfect≥ 20+$30 +15%+10 +20%+5 +15%+5 +20%
Great≥ 15+$20 +10%+5 +15%+5 +10%+2 +15%
Good≥ 10+$10 +5%+5 +10%+3 +5%-
Bad≥ 5−5%---
Horrible< 5−10%--−5 −10%

Score Calculation

Score is computed from three components (0–6 each, plus 2 base = max 20):

  • Angle - Vehicle forward vs parking spot forward (0° or 180° = best)
  • Side offset - Lateral distance from center (adaptive to spot/vehicle width)
  • Forward offset - Longitudinal distance from center (adaptive to spot/vehicle length)

Usage Example

-- Calculate precision for player vehicle
local ps = career_modules_delivery_generator.getParkingSpotByPath(psPath)
local data = career_modules_delivery_precisionParking.calculateVehiclePrecisionScore(vehId, ps)
if data then
  local bonus = career_modules_delivery_precisionParking.getPrecisionParkingBonus(data)
  print(bonus.precisionLevel, bonus.moneyFlat, bonus.moneyPercent)
end

See Also

  • career_modules_delivery_parcelManager - Reward calculation integration
  • career_modules_delivery_vehicleTasks - Vehicle delivery reward breakdown
  • career_modules_delivery_progress - Drop-off flow

Additional Exports

Functions

FunctionDescription
M.calculateCargoPrecisionParking(cargo, targetLocation)Main function to calculate and apply precision parking for cargo delivery
M.calculateVehiclePrecisionParking(taskData)Main function to calculate and apply precision parking for vehicle delivery
M.debugPrecisionParking(vehId, targetParkingSpot)Debug function to test precision parking
M.getPrecisionParkingConfig()Get precision parking configuration (for UI/debugging)

Values/Properties

ExportDescription
M.calculateVehiclePrecisionScoreExpose calculateVehiclePrecisionScore for breakdown integration
M.getPrecisionParkingBonusExpose getPrecisionParkingBonus for debug module

Delivery Parcel Modifiers

Defines cargo modifiers (timed, precious, large, fluid, etc.), generates them per-parcel, tracks modifier statistics, and checks unlock status.

Delivery Progress

Tracks delivery statistics, manages the drop-off flow (gathering data, confirming, applying rewards), and controls facility unlock/visibility.

On this page

DependenciesModule InfoPublic API| M.onCareerActivated | () | - |Scoring LevelsScore CalculationUsage ExampleSee AlsoAdditional ExportsFunctionsValues/Properties