API ReferenceGE Extensionscareermodulesdelivery
Delivery Tasklist
M.dependencies = {"core_vehicleBridge"}
Dependencies
M.dependencies = {"core_vehicleBridge"}Manages the in-game HUD tasklist for active deliveries - groups cargo by destination, shows pickup/delivery/trailer tasks, and updates in real-time.
Module Info
| Field | Value |
|---|---|
| Path | extensions/career/modules/delivery/tasklist.lua |
| Global | career_modules_delivery_tasklist |
| Dependencies | core_vehicleBridge |
Public API
| Function | Signature | Description |
|---|---|---|
sendCargoToTasklist | () | Rebuilds the entire tasklist from current cargo and vehicle tasks |
updateTasklistForCargoId | (cargoId) | Marks a specific cargo's tasklist entry for update |
updateTasklistForOfferId | (offerId) | Marks a vehicle offer's tasklist entry for update |
clearTasklistForOfferId | (offerId) | Marks a vehicle offer's tasklist entry for removal |
clearAll | () | Marks all tasklist entries for removal |
updateCargoTasklistElements | () | Processes all pending updates/clears and sends to UI |
| M.onCareerActivated | () | - |
Hooks
| Hook | Description |
|---|---|
onUpdate | Calls updateCargoTasklistElements() every frame |
Task Types
| Type | Description |
|---|---|
parcels | Group of loaded cargo by destination + modifier group |
pickup | Transient cargo awaiting pickup at a facility |
trailer | Active trailer delivery task (couple → bring → drop off) |
vehicle | Active vehicle delivery task (enter → bring → drop off) |
header | Summary header showing total count |
UI Events
| Event | Data | Description |
|---|---|---|
SetTasklistTask | {id, label, subtext, active, type} | Creates/updates a task entry |
DiscardTasklistItem | id | Removes a task entry |
SetTasklistHeader | {label, subtext} or nil | Sets/clears the tasklist header |
Usage Example
-- Rebuild tasklist after cargo changes
career_modules_delivery_tasklist.sendCargoToTasklist()
-- Clear everything
career_modules_delivery_tasklist.clearAll()See Also
career_modules_delivery_parcelManager- Cargo datacareer_modules_delivery_vehicleTasks- Vehicle/trailer taskscareer_modules_delivery_general- Game time for timer display
Additional Exports
Functions
| Function | Description |
|---|---|
M.onUpdate(dtReal, dtSim, dtRaw) | No description available |
Values/Properties
| Export | Description |
|---|---|
M.clearAll | Value: clearAll |
M.clearTasklistForOfferId | Value: clearTasklistForOfferId |
M.sendCargoToTasklist | Value: sendCargoToTasklist |
M.updateCargoTasklistElements | Value: updateCargoTasklistElements |
M.updateTasklistForCargoId | Value: updateTasklistForCargoId |
M.updateTasklistForOfferId | Value: updateTasklistForOfferId |
Delivery Progress
Tracks delivery statistics, manages the drop-off flow (gathering data, confirming, applying rewards), and controls facility unlock/visibility.
Delivery Tutorial
Manages tutorial state for the three delivery types (cargo, vehicle, materials). Tracks completion via XP checks, provides step-by-step task lists for UI.