API Reference GE Extensions career modules Linear Tutorial M.dependencies = {'career_career'}
M. dependencies = { 'career_career' }
Manages the career tutorial system including linear step-based tutorial progression, intro popup splashscreens, tutorial flags, and flowgraph-driven tutorial sequences.
Field Type Description M.allTutorialFlagsvaries Assigned as {insuranceFlag, bigmapFlag, refuelFlag, missionFlag, dealershipFlag, inventor... M.bounceBigmapIconsvaries Assigned as false M.tutorialEnabledvaries Assigned as -1
Function Signature Description M.getLinearStep() → numberCurrent linear tutorial step (-1 = complete) M.isLinearTutorialActive() → boolWhether linear tutorial steps are in progress M.getTutorialFlag(key) → boolGet named tutorial flag state M.setTutorialFlag(key, value)Set named tutorial flag M.getTutorialData() → tableFull save data including flags M.endTutorial()End tutorial, enable autosave, reset state
| M.getCustomTowHookLabel | () | - |
Function Signature Description M.beginLinearStep(step)Load and start flowgraph for given step M.completeLinearStep(nextStep)Advance to next tutorial step
Function Signature Description M.introPopup(id, force)Show intro popup from HTML template if not seen M.wasIntroPopupsSeen(pages) → boolCheck if all listed popups were seen M.showNonTutorialWelcomeSplashscreen()Show welcome popups for non-tutorial career start M.showAllSplashscreensAndLogbookEntries()Debug: show all popups M.drawDebugFunctions()ImGui debug menu for intro popups M.onExtensionUnloaded()-
These are dynamically created from introPopupTable:
Function Triggers Popup(s)
Function Description M.setTrafficForTutorialScatter traffic, disable police M.setTrafficAfterTutorialRestore normal traffic with police
Hook Purpose M.onExtensionLoadedLoad tutorial save data M.onSaveCurrentSaveSlotPersist tutorial data M.onCareerActiveDisable autosave during tutorial M.onClientStartMissionBegin current linear step M.onCareerModulesActivatedBegin current linear step
Key boolean flags tracked in saveData.flags:
towToRoadEnabled, towToGarageEnabled, customTowHookEnabled, completedTutorialMission, arrivedAtFuelstation, arrivedAtGarage, purchasedFirstCar, partShoppingComplete, tuningComplete, modifiedFirstCar, spawnPointDiscoveryEnabled, earnedFirstStar
logbook - Tutorial entries appear in logbook
career - Career activation and tutorial flag