JCKSDocs
JCKS LibPrimeiros passos

JCKS Lib

What jcks_lib is, what it replaces and which parts of it you use as a server owner or a developer.

jcks_lib is the core library and UI runtime of every JCKS resource. JCKS Jobs, JCKS Vehicles, JCKS Logs and JCKS Bridge all need it. It is free and released through the Cfx.re Asset Escrow like every other JCKS resource. Your own resources can use it without jcks_bridge, admins then set the look in /uiadmin, see Configuration.

It replaced jcks_ui, the UI resource of the V1 scripts. The manifest still declares provide 'jcks_ui', so resources that list jcks_ui as a dependency keep starting. There is only one version of jcks_lib, the one described here.

What it contains

Part What it does Page
UI runtime Notifications, text UI, progress, context menus, input and alert dialogs, list menu, radial menu, skill check, requests, Spotlight, key hints, objectives, timers, banners, placement HUD UI components
Panels Complete admin windows built from a Lua table Panels
Core modules jcks.callback, jcks.net, jcks.cache, jcks.keybind, jcks.stream, jcks.points, jcks.zones, jcks.closest, jcks.wait, jcks.command, jcks.vehicle, jcks.clipboard, jcks.screen, jcks.locale, jcks.settings, jcks.theme Core modules
Interactions The JCKS target system for places, NPCs, players and vehicles Interactions
Themes and player settings Server themes, the theme editor, /uisettings and /notifysettings Themes
Script settings Lets any resource put its settings into /jcks of JCKS Bridge Script settings
Update system settings/, editable/ and defaults/ folders with a merge on start and the V1 import Updates

The released package contains the runtime (Lua API and compiled interface). The React design kit and the build tool in web/ stay in the JCKS workspace and are not part of the download.

Cost on the server

No thread runs unless something is open. The progress loop lives only while a progress runs, the list menu and request loops only while they are shown, the radial loop only while it is open. Notifications, hints, objectives and timers are pure NUI, Lua only sends a message when something changes. Menus, radial items, Spotlight actions, hints, objectives, interactions and panels of a resource are removed automatically when that resource stops.

Where to go next