Repository navigation
Releases
cortex-lib v4.1.2
Full Changelog: v3.0.0...v4.1.2
cortex-lib v4.1.1
Full Changelog: v3.0.0...v4.1.1
cortex-lib v4.1.0
["## cortex-lib 4.1.0 (2026-11-23)", "", "Drop-in update: replace the \cortex-lib\ folder and restart the server.", "", "### Added", "- \lib.framework\: one server and client API for Qbox, QBCore and ESX (identity, job and duty, groups, cash and bank, items, usable items, load and unload events), so a script does not carry its own bridge. Loads only in resources that use it. Checked in game on Qbox; QBCore 1.3.0 and ESX Legacy 1.16.3 server side run on real servers (client side not yet played in game).", "", "### Changed", "- Notifications appear at the middle right of the screen by default. Settings > Notifications > Position adds Middle right and Middle left.", "- The Modern skin no longer draws a card behind notifications or the Look list.", "", "### Fixed", "- Radial wheel: text labels stay inside their slice at every slot count.", "- The text shadow behind Look list messages and the list wheel's title is no longer cut off into a dark box.", "", "Full Changelog: https://github.com/IEver3st/cortex-lib/compare/v4.0.0...v4.1.0"]
cortex-lib v4.0.0
cortex-lib 4.0.0 (2026-11-22)
Replace the cortex-lib folder, start it before its consumers, and restart the server.
Before you update
- Prompts from every script on
cortex-libnow show in full only within 1.5 m or when you look at them, otherwise a small ring marker.anchor.alwaysPrompt = truekeeps a prompt always on. - Six new default keys: E uses the thing in front of you, Z is the Look key, X cancels, Y answers, M opens Actions, B points.
setr cortex_lib_use_key,cortex_lib_peek_key,cortex_lib_cancel_key,cortex_lib_answer_key,cortex_lib_actions_keyandcortex_lib_point_keychange the defaults. X, Y, M and B do nothing until a script registers something on them.
New
- Things (
lib.thing): describe an object and its verbs; the lib shows one key and one verb, asks the server, walks the character to the stand point and locks the thing while it is in use ("In use" for everyone else). - Cortex keys (
lib.keys): four shared keys every Cortex script uses for the same job. Cancel (X) stops the newest thing the player started, Answer (Y) answers the newest invite or check, Actions (M) opens one wheel built from every script's actions, Point (B) gives taps and holds to the right owner. A cancelable progress bar joins Cancel. - Look key: recent notices you missed, up to five, next to the live ones.
- Notices: named senders (
lib.registerSender), a 40-notice session log, and Quiet notifications in Settings. - Skins: a HUD can restyle notifications, progress and text UI to match its design (
setPresentationDesign). - Settings hosts: resources listed in
cortex_lib_settings_hostscan read every settings tab and change a setting for the player. - Lists on one key fold to
+N; blocked rows show a reason. - Accent bars removed from rows, titles and fields; notification icon sits in a round coin.
- Fixed: two prompts on the same key near each other no longer block each other; a far prompt no longer takes the key.
cortex-lib v3.7.0
Full Changelog: v3.0.0...v3.7.0
cortex-lib v3.6.0
cortex-lib 3.6.0
Drop-in update. Replace the whole cortex-lib folder, start it before its consumers, and restart them. No SQL migration, no config changes.
Fixed
- Saved settings apply after a relog or restart: a resource's saved settings could read back as defaults after a player relogged, or after that resource restarted, so Cortex Chat and other scripts ignored what the player had saved even though Settings still showed it. cortex-lib now finds a resource's settings the first time the resource asks for them, not only when cortex-lib starts.
Added
- Volumetric light glare:
glareSize,glareGrowth,glareFocusandglareLiftshape the glare at the lamp. The defaults keep the old glare.
Cortex Chat owners: Chat 2.2.0 needs this version. Older cortex-lib makes Chat ignore players' saved font, position and size after a relog or a Chat restart, and Chat 2.2.0 prints a warning in the server console until you update.
Full details: CHANGELOG.md
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
cortex-lib v3.4.0
cortex-lib 3.4.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
- World prompts stay pinned: prompts, lists and markers are drawn by the game from one DUI texture, so they no longer trail or stutter when the camera turns. If the DUI cannot load, the previous layer takes over.
set cortex_lib_world_dui 0switches back by hand. - Callouts (
lib.showCallouts): a pin on each part of a vehicle or other entity, a leader out to its label, and a block of switches. Players point and click while still driving; nothing takes NUI focus. Display only: the calling resource decides what every label says and acts onselect,wheelandclosedevents. See Callouts indocs/api.md. - Arrow pairs such as "← →" show as one axis key glyph.
Changed
- Settings tabs scroll: when the tabs no longer fit on one row, the row scrolls sideways with arrows at both ends. An arrow shows a dot when a tab with unsaved changes is out of view on that side.
- License: Cortex Library now uses the Cortex Library Free Use License instead of MIT. Still free to use and modify on servers you own or run, including commercial ones; no resale or redistribution.
Fixed
- A controller's left and right now switch settings tabs. They used to move focus off the tab row.
Full details: CHANGELOG.md
cortex-lib v3.3.1
cortex-lib 3.3.1
First GitHub release since 3.0.0; it includes the 3.1.0 to 3.3.0 library work. Replace the whole cortex-lib folder, start it before its consumers, and restart them. No SQL migration.
Added
- Update check: on start the server console says
Update available: <version>with the download link when GitHub has a newer release. One request per start; it never downloads or changes files. Turn it off withset cortex_lib_version_check 0. - Radial menus:
releaseSelect = trueselects the item under the pointer when the opening key is released. - Menu icons:
traffic-cone,road-barrier,work-light,scene-marker. lib.placement(model placement preview),lib.sensors(thermal and night vision),lib.volumetric(volumetric light beams) and the Graphics > Volumetric lights setting.- Prompts and notices step around the voice indicator; interaction prompts hide during character select.
Fixed
- Placement: mouse-button bindings, left-click confirm, map geometry accepted as a surface.
- The help legend reports its full height, so HUDs no longer overlap it.
- Long labels in target panels keep their keys inside the panel.
- Settings could not be saved when a stored value was stale.
lib.vehicleReplayfinds FiveM's wheel natives.
Full details: CHANGELOG.md
cortex-lib v3.0.0
cortex-lib 3.0.0
This release redesigns the shared UI and adds interaction markers, merged prompt lists, player appearance controls and new Lua modules.
Install or update
Download cortex-lib.zip below, verify it against cortex-lib.zip.sha256, and extract the complete cortex-lib folder into your server's resources. Start it before every consumer:
ensure cortex-lib
ensure your-resourceBack up the previous version, stop consumers before replacing files, then start the library and consumers in that order. Keep the exact folder name. No SQL migration, framework or frontend build is required by the library itself.
Action required for 2.x consumers
- The UI app API is removed:
registerUiApp,unregisterUiApp,openUiApp,updateUiApp,closeUiApp, their exports andcortex:uiEvent. Update consumers using them before upgrading. - Shared appearance settings move to the Cortex tab. The separate Dynamic UI tab and per-resource appearance opt-outs are removed. Retained preferences migrate automatically.
- Gameplay, bindings and permission checks remain owned by consumers. Anchored interaction actions must check visibility and current gameplay state; hold indicators only display progress.
Included changes
- Redesigned notifications, menus, radial menus, dialogs, progress, text UI, controls legends, interactions and settings.
- Distant interaction markers and merged world lists with mouse-wheel selection for shared keys.
- Player preferences for interface and text size, notification duration and limit, prompt markers and scale, control hints, list scroll direction and progress percentage.
- Custom hex accents with readability adjustment, shared opacity and motion preferences, and accent-derived focus tint.
- Settings previews with Apply, Save and Discard; native game blur while settings are open.
- Menu navigation, disabled rows, radial paging, number steppers, password reveal and required-field validation.
- Server group-job helpers over
cortex-phone, with unavailable-service fallbacks and registration replay after phone restarts. Group operations require that resource. - Shared vehicle wheel-speed and suspension telemetry for replay consumers.
- A rebuilt README with installation, migration and developer examples, plus the existing interface image gallery.
Validation
All 75 Node contract checks and 38 Lua specs passed locally. Manifest and packfile validation, JavaScript and Lua syntax checks, whitespace checks and the extracted release archive passed. The published ZIP and checksum were downloaded and verified after publication.
GitHub Actions could not start because the account's Actions budget blocks execution, so this release was built and validated locally. FiveM, CEF, multiplayer and resmon acceptance remain user-run; no live runtime or performance result is claimed.