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 Parcel Manager

M.dependencies = {"freeroam_facilities"}

Dependencies

M.dependencies = {"freeroam_facilities"}

Central cargo data store - adds, moves, and queries all cargo items. Manages transient moves (staging before commit), location comparison, reward calculation, and modifier tracking.


Module Info

FieldValue
Pathextensions/career/modules/delivery/parcelManager.lua
Globalcareer_modules_delivery_parcelManager
Dependenciesfreeroam_facilities

Public API

FunctionSignatureDescription
addCargo(cargo, silent)Adds a cargo item. Triggers onCargoGenerated unless silent
changeCargoLocation(cargoId, newLocation)Moves cargo. Adjusts material storages, sets loadedAtTimeStamp, marks delivered
addTransientMoveCargo(cargoId, targetLocation)Stages a cargo move (not yet committed)
getTransientMoveCargo()Returns all cargo with pending transient moves
clearTransientMoveForCargo(cargoId)Removes transient move for one cargo
clearAllTransientMoves()Clears all transient moves
applyTransientMoves(currentLocation)Commits transient moves at a location. Returns movedCargo, remainingCargo
getTransientMovesForTargetLocationWithCargo(targetLocation)Returns cargo with transient moves targeting a location
clearTransientFlags()Deprecated stub
undoTransientCargo()Placeholder for undo functionality
sameLocation(a, b)Compares two location tables for equality
sameLocationCargo(cargo, otherLoc)Checks if cargo.location matches otherLoc
getAllCargoCustomFilter(filter, ...)Returns cargo matching a custom filter function
getAllCargoForLocation(loc)Returns all cargo at a specific location
getAllCargoForLocationUnexpired(loc)Returns unexpired cargo at a location
getAllCargoForLocationUnexpiredUndelivered(loc, timeExpire, timeGenerated)Returns unexpired, undelivered cargo at a location
getAllCargoForFacilityUnexpiredUndelivered(facId, timeExpire, timeGenerated)Returns unexpired, undelivered cargo for a facility
getAllCargoForDestinationFacilityStillAtOriginUnexpired(facId)Returns cargo destined for a facility still at origin
getAllCargoAtFacilityUnexpired(facId)Returns all unexpired cargo at a facility
getAllCargoInVehicles(includeTransient)Returns all cargo in vehicle containers
getLocationLabelShort(loc)Short display label for a location
getLocationLabelLong(loc)Long display label with parking spot name
getCargoById(cargoId)Returns a cargo item by ID
getRewardsWithBreakdown(cargo)Calculates original, breakdown, and adjusted rewards (timed mods, loaners, precision parking, branch multiplier)
addParcelRewardsSummary(cargo)Groups cargo and attaches reward breakdowns for UI
cleanUpCargo()Removes expired and deleted cargo items

| addParcelRewards | - | Dead reference (undefined local); likely deprecated in favor of addParcelRewardsSummary | | onCareerActivated | () | Initializes delivery module references |

Hooks

HookDescription
onUpdateUpdates timed modifiers, sends tasklist changes, cleans up cargo
onTrailerAttachedUpdates loaner organization tracking on cargo when trailers are attached

Location Types

TypeFieldsDescription
facilityParkingspotfacId, psPathAt a facility parking spot
vehiclevehId, containerIdIn a vehicle cargo container
multidestinations[]Multiple possible destinations
delete / deleted-Marked for removal
playerAvatar-On the player

Usage Example

-- Get all cargo in player vehicles
local cargo = career_modules_delivery_parcelManager.getAllCargoInVehicles(true)

-- Move cargo to a vehicle container
career_modules_delivery_parcelManager.addTransientMoveCargo(42, {type="vehicle", vehId=100, containerId=0})
career_modules_delivery_parcelManager.applyTransientMoves()

-- Calculate delivery rewards
local orig, breakdown, adjusted = career_modules_delivery_parcelManager.getRewardsWithBreakdown(cargo)

See Also

  • career_modules_delivery_generator - Cargo generation
  • career_modules_delivery_general - Delivery mode
  • career_modules_delivery_parcelMods - Modifier system
  • career_modules_delivery_precisionParking - Parking bonus

Additional Exports

Functions

FunctionDescription
M.onCareerActivated()No description available

Values/Properties

ExportDescription
M.addCargoValue: addCargo
M.addParcelRewardsValue: addParcelRewards
M.addParcelRewardsSummaryValue: addParcelRewardsSummary
M.addTransientMoveCargoValue: addTransientMoveCargo
M.applyTransientMovesValue: applyTransientMoves
M.changeCargoLocationValue: changeCargoLocation
M.cleanUpCargoValue: cleanUpCargo
M.clearAllTransientMovesValue: clearAllTransientMoves
M.clearTransientFlagsValue: clearTransientFlags
M.clearTransientMoveForCargoValue: clearTransientMoveForCargo
M.getAllCargoAtFacilityUnexpiredValue: getAllCargoAtFacilityUnexpired
M.getAllCargoCustomFilterValue: getAllCargoCustomFilter
M.getAllCargoForDestinationFacilityStillAtOriginUnexpiredValue: getAllCargoForDestinationFacilityStillAtOriginUnexpired
M.getAllCargoForFacilityUnexpiredUndeliveredValue: getAllCargoForFacilityUnexpiredUndelivered
M.getAllCargoForLocationValue: getAllCargoForLocation
M.getAllCargoForLocationUnexpiredValue: getAllCargoForLocationUnexpired
M.getAllCargoForLocationUnexpiredUndeliveredValue: getAllCargoForLocationUnexpiredUndelivered
M.getAllCargoInVehiclesValue: getAllCargoInVehicles
M.getCargoByIdValue: getCargoById
M.getLocationLabelLongValue: getLocationLabelLong
M.getLocationLabelShortValue: getLocationLabelShort
M.getRewardsWithBreakdownValue: getRewardsWithBreakdown
M.getTransientMoveCargoValue: getTransientMoveCargo
M.getTransientMovesForTargetLocationWithCargoValue: getTransientMovesForTargetLocationWithCargo
M.onBranchTierReachedValue: onBranchTierReached
M.onTrailerAttachedValue: onTrailerAttached
M.onUpdateValue: onUpdate
M.sameLocationValue: sameLocation
M.sameLocationCargoValue: sameLocationCargo
M.undoTransientCargoValue: undoTransientCargo

Delivery Pages (Logbook)

Provides logbook entries for the delivery system - facility overview, delivery history, and cargo modifier progress pages.

Delivery Parcel Modifiers

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

On this page

DependenciesModule InfoPublic API| addParcelRewards | - | Dead reference (undefined local); likely deprecated in favor of addParcelRewardsSummary | | onCareerActivated | () | Initializes delivery module references |HooksLocation TypesUsage ExampleSee AlsoAdditional ExportsFunctionsValues/Properties