Repository navigation
cortex-lib v3.5.0
cortex-lib 3.5.0
Drop-in update. Replace the whole cortex-lib folder, start it before its consumers, and restart them. No SQL migration, no config changes.
Added
- Settings key: I opens Settings on every server, with or without cortex-hud. Players rebind it in Settings > Key Bindings > FiveM ("Cortex: open settings").
setr cortex_lib_settings_key <key>changes the default, and""leaves it unbound. The manifest declarescortex_settings_key '1'so consumers can skip binding their own. - Callout styles:
lib.showCallouts({ style = ... })picks one of four looks:ink(default, unchanged),slip,paperanddraft. Every style keeps the same sizes, so labels sit in the same places.lib.getCalloutStyles()lists them, andlib.prepareCallouts(style)paints the pins in the style the first session will use.
Changed
- Settings is a script library: scripts are listed down the left, grouped Everyday, Equipment, Activities, Staff and Other with a setting count each, with search at the top. Sections are chips beside the Advanced switch. Resources pick their group with
{ group = '...' }onregisterSettingsor agroupfield in their settings definition; Cortex resources are placed automatically. - Keycaps: menus, Settings, dialogs and the quick menu draw an opposite arrow pair as one axis keycap, and Backspace reads BKSP everywhere.
- Quick menu: brought in line with the Cortex design rules. Neutral ink panels, token colours, no looping animations, larger and higher-contrast small labels.
- Radial legend no longer repeats RMB Back/Close, and the Settings Escape hint reads "Discard & resume".
Fixed
- Settings saves are cheap: Save and Apply only write the settings that changed. They used to rewrite every setting of every tab, which spiked cortex-lib's CPU for a second or two on each save.
- Settings reopens on the tab, section and Advanced switch the player last used, kept across reconnects.
- Escape while searching Settings clears the search and keeps unsaved changes; the next Escape leaves.
- Settings search and text fields no longer show the browser's grey border inside their ink well.
- Notifications sent without a title take one from their own lead (text before a colon, or a short first line), or from their type.
- Callout leaders step round other pins instead of losing their label to hover.
- Smaller fixes: "1 RESULT" / "1 SETTING" wording, dialog button row alignment, legible "+N held" and progress cancel hint at 720p.
Full details: CHANGELOG.md