JCKSDocs
JCKS LibRéférence

Configuration

Every option of jcks_lib settings/config.lua with its default and what it changes.

All options are in settings/config.lua. This file is sent to players, so it holds nothing secret. Values set to 'auto' follow the JCKS Bridge setup (/jcks), or /uiadmin when jcks_bridge does not run, so one change there restyles every JCKS resource. Set a value here only to override that page on this server.

With jcks_bridge every value can also be changed in game in /jcks, Advanced config (JCKS Lib). It applies at once for every player without a restart, is saved in the database and wins over this file. Renamed commands answer under the new name right away. Keys are changed for everyone in /jcks, Keys, the key in this file is only the default for a fresh server.

Language

Key Type Default What it changes
Config.Locale string 'auto' 'auto' uses the language chosen in /jcks, or in /uiadmin without the bridge. Otherwise en, sk or cs.

Appearance

Key Type Default What it changes
Config.Appearance.theme string 'auto' graphite, midnight, asphalt, paper, ledger, console, showroom, or the id of a theme created in /jcks, Appearance
Config.Appearance.motion string 'auto' full or reduced. Reduced turns off window and list animations.
Config.Appearance.scale number 'auto' 0.85 to 1.2, size of every JCKS window. Players can pick their own if allowed.
Config.Appearance.branding string 'auto' logo shows the server logo from /jcks Appearance next to window titles, text shows the title text only

Focus rescue

Key Type Default What it changes
Config.FocusRescue.command string 'jcksfocus' Command a player types when a window keeps the mouse. It closes every JCKS layer and gives control back to the game. '' registers no command.

Player settings

Players open their own UI settings with the command below. With jcks_bridge running, the command name is set in /jcks, Appearance, and this command is not used. What players may change is set in /jcks, Appearance, or in /uiadmin, Players without the bridge. false here locks a field on this server no matter what that page allows. The choices are saved on the player's PC (KVP jcks:player).

Key Type Default What it changes
Config.PlayerSettings.enabled boolean true Player settings on or off
Config.PlayerSettings.command string 'uisettings' Command used only without jcks_bridge
Config.PlayerSettings.theme boolean true Pick any theme the server offers
Config.PlayerSettings.customize boolean true Build their own themes in the theme editor, only they see them
Config.PlayerSettings.import boolean true Paste theme codes shared by other players
Config.PlayerSettings.locale boolean true Language of every JCKS window
Config.PlayerSettings.scale boolean true Window size
Config.PlayerSettings.sounds boolean true Interface sounds

Notifications

Key Type Default What it changes
Config.Notify.position string 'auto' top-right, top, top-left, bottom-right, bottom, bottom-left, center-right, center-left
Config.Notify.duration number 5000 Default duration in ms
Config.Notify.max number 5 Notifications visible at once
Config.Notify.centerCommand string 'notifications' Opens the history of this session's notifications. '' turns it off, also in Spotlight.
Config.Notify.sound boolean true Notification sound
Config.Notify.history number 60 Notifications kept in that history for the session, 0 to 500, 0 keeps none

Notification settings for players

Players open their own notification settings with this command: show or hide notifications, which kinds they see (success, error, warning, info), sound, screen position, how long they stay and how many are visible at once. Saved on the player's PC. Hidden notifications still land in the notification history. The admin can turn this off in /jcks, Appearance, Player settings, or in /uiadmin, Players without the bridge.

Key Type Default What it changes
Config.NotifySettings.enabled boolean true false turns it off on this server
Config.NotifySettings.command string 'notifysettings' Command name

Text UI

Key Type Default What it changes
Config.TextUI.position string 'auto' left-center, right-center, top-center, bottom-center

Progress

Key Type Default What it changes
Config.Progress.style string 'auto' bar or circle
Config.Progress.cancelKey string 'X' Cancel key. Players rebind it in GTA Settings, Key Bindings, FiveM, admins in /jcks, Keys.
Config.Progress.disable table {} Controls a progress blocks when a script asks to block that group. Empty keeps the built-in lists. A group set here replaces the built-in one. Values are GTA control ids. Groups: move, sprint, car, combat, mouse.

Example for a server that also blocks the phone key while movement is blocked:

lua
Config.Progress = {
    style = 'auto',             -- bar | circle
    cancelKey = 'X',            -- players can rebind it in Settings -> Key Bindings -> FiveM, admins in /jcks -> Keys
    disable = { move = { 21, 30, 31, 36, 22, 44, 288 } },
}

List menu

Key Type Default What it changes
Config.Menu.position string 'top-left' top-left, top-right, bottom-left, bottom-right
Config.Menu.repeatDelay number 320 ms an arrow key is held before the selection starts repeating, 100 to 1000
Config.Menu.repeatRate number 65 ms between repeats while the arrow key stays held, 30 to 500
Config.Menu.skipDisabled boolean true true: arrow keys jump over disabled options, an option with selectable = true still stops. false: they stop on them so the text can be read.

Radial menu

Key Type Default What it changes
Config.Radial.enabled boolean true Radial menu on or off
Config.Radial.key string 'Z' Hold to open, release to close. Admins change it for everyone in /jcks, Keys.
Config.Radial.hold boolean true false means press once to open and again to close

Spotlight

A searchable command palette. Every resource can add quick actions to it with UI.RegisterAction.

Key Type Default What it changes
Config.Spotlight.enabled boolean true Spotlight on or off
Config.Spotlight.key string 'F9' Open key. Admins change it for everyone in /jcks, Keys.

Admin page

Only used while jcks_bridge does not run. Admins open /uiadmin and set the default theme, server themes, hidden themes, motion, size, logo, language, positions of notifications and text UI, progress style, what players may change and the values of this file. Saved on the server in KVP jcks_lib:standalone and applied at once. With jcks_bridge running the command only points to /jcks.

Who may open it: ACE jcks_lib.admin, jcks.admin or jcks.owner, for example add_ace group.admin jcks_lib.admin allow in server.cfg.

Key Type Default What it changes
Config.Admin.enabled boolean true false turns the page off, the values in this file then stay as they are
Config.Admin.command string 'uiadmin' Chat command, letters, digits, _ and -. '' registers no command.

UI test page

A panel with one card per JCKS Lib component, to check a theme before rolling it out or as the in-game test plan. Who may open it: ACE jcks_lib.admin, jcks.admin or jcks.owner, or the permission UI test page in /jcks, Access (admins by default). Admins also find it in Spotlight.

Key Type Default What it changes
Config.UITest.enabled boolean true false turns it off
Config.UITest.command string 'jcksuitest' Command name. '' turns it off.

Theme market

Key Type Default What it changes
Config.Market.searchPerMinute number 30 Most searches per minute this server sends to JCKS Presets for the theme market, all players together, 1 to 600. Results stay cached for 60 s. A search over the limit shows the last cached result or asks the player to try again.

Interactions

Used by every JCKS resource when the bridge setup picks JCKS as the target system. Values marked 'auto' follow /jcks, Interactions. Players rebind both keys in GTA Settings, Key Bindings, FiveM.

Key Type Default What it changes
Config.Interact.mode string 'auto' hold: prompts show only while the player holds the show key. always: prompts of everything in range are visible. look: only the prompt the player looks at is visible, no key needed.
Config.Interact.input string 'auto' keys: mouse wheel picks an option, the use key or the option's own key uses it. mouse: holding the show key frees the cursor and options are clicked.
Config.Interact.distance number 'auto' Default reach in meters when an interaction sets none, 0.5 up to maxReach, for example 2.5
Config.Interact.others boolean 'auto' true shows a small key hint at other interactions in range, false only at the focused one
Config.Interact.showKey string 'LMENU' Key that shows prompts in hold mode (Left Alt). /jcks, Keys overrides it.
Config.Interact.useKey string 'E' Key that uses the selected option. /jcks, Keys overrides it.
Config.Interact.refresh number 250 ms between scans for nearby interactions, 100 to 750. Lower feels snappier, higher costs less CPU.
Config.Interact.maxReach number 10.0 Longest reach in meters any interaction may ask for, 2 to 15
Config.Interact.blockedKeys table {} Keys an option may not claim as its own shortcut, for keys other scripts use, for example { 'X', 'Z' }. Allowed shortcut keys are E F G H Q R X Z C B Y T K U L. E always stays available.