API ReferenceGE Extensionscareermodules
Career Rentals Module
**⚠️ Work-in-progress / Stub module.** Vehicle rental system skeleton. Most functions are placeholder stubs with no implementation. Lifecycle hooks are commented out-module is effectively inactive.
⚠️ Work-in-progress / Stub module. Vehicle rental system skeleton. Most functions are placeholder stubs with no implementation. Lifecycle hooks are commented out-module is effectively inactive.
Public API
| Function | Signature | Description |
|---|---|---|
M.isRenting | () → bool | Whether the player currently has a rental vehicle |
Planned Features (Not Implemented)
beginRenting(vehInfo)- Spawn rental vehicle, track kilometersvehReturn(veh)- Calculate damage tier, process refundautomaticVehReturn(veh)- Auto-return with recollection feefindNearestRentalAgency()- Distance-based nearest agency lookup- Abandon timer: 30s countdown when player is >300m from rental vehicle
Internal State
baseAbandonTimer = 30 -- seconds before auto-return
abandonDist = 300 -- meters threshold
currRentalVeh = nil -- current rental vehicle objectNotes
All lifecycle hooks (onExtensionLoaded, onSaveCurrentSaveSlot, onUpdate) are commented out in the return block, so this module does not execute any runtime logic.
See Also
- testDrive - Active temporary vehicle system (implemented)