API ReferenceGE Extensionscareermodules
Career Player Abstract Module
Provides the "Driver's Abstract" computer menu, which displays the player's insurance/driving record. Thin wrapper around the insurance system's abstract data.
Provides the "Driver's Abstract" computer menu, which displays the player's insurance/driving record. Thin wrapper around the insurance system's abstract data.
Public API
| Function | Signature | Description |
|---|---|---|
M.openPlayerAbstractMenu | (originComputerId) | Opens the player abstract UI state |
M.getPlayerAbstractData | () → table | Returns driver abstract data from insurance module |
M.onComputerAddFunctions | (menuData, computerFunctions) | Registers "Driver's Abstract" button on computers |
M.closePlayerAbstractMenu | () | Returns to computer menu or closes all menus |
Dependencies
career_modules_insurance_insurance-getPlayerAbstractData()provides the actual datacareer_modules_computer- menu integration and tutorial checksfreeroam_facilities- computer facility lookups
Hooks Emitted
| Hook | When |
|---|---|
onComputerPlayerAbstract | Abstract menu is opened |
Usage Example
-- Open from computer callback
career_modules_playerAbstract.openPlayerAbstractMenu(computerId)
-- Get data for custom UI
local data = career_modules_playerAbstract.getPlayerAbstractData()See Also
- permissions - Permission checks (not used here, but related computer functions do)