V1 has no provider page. Every notification, progress bar and text prompt of every JCKS resource goes through client/editable.lua. The default functions use jcks_ui when it is started and fall back to ox_lib. client/editable.lua and server/editable.lua stay readable in the escrow build.
client/editable.lua
| Function | Default |
|---|---|
Editable.Notify(data) |
jcks_ui Notify, otherwise lib.notify at NotifyPosition |
Editable.Progress(opts) |
jcks_ui Progress with ProgressStyle, otherwise lib.progressCircle or lib.progressBar. Must return true when finished. |
Editable.CancelProgress() |
Cancels the running progress |
Editable.ShowTextUI(text, icon) / Editable.HideTextUI() |
jcks_ui text UI, otherwise lib.showTextUI and lib.hideTextUI |
Editable.SetClipboard(text) |
Fallback for older ox_lib builds without lib.setClipboard |
Editable.OpenWardrobe() |
Outfit menu of the detected clothing resource |
Editable.RestoreCivilian() |
Applies the saved skin of the character again |
Editable.SetFuel(vehicle, fuel) / Editable.GetFuel(vehicle) |
Detected fuel resource plus the native fuel level |
Example, okokNotify instead of jcks_ui:
function Editable.Notify(data)
exports['okokNotify']:Alert(data.title or 'Info', data.description, data.duration or 5000, data.type or 'info')
endserver/editable.lua
| Function | When it runs | Default |
|---|---|---|
Editable.GiveKeys(src, vehicle, plate) |
A JCKS resource hands out a vehicle | Calls the detected keys resource |
Editable.RemoveKeys(src, vehicle, plate) |
A job vehicle is returned | Calls the detected keys resource |
Editable.Notify(src, data) |
A server side notification | Sends it to the client Editable.Notify |
Editable.IsAdmin(src) |
The IsAdmin export |
false. Return true to grant access from your own staff system. |
Appearance
The look of every JCKS window comes from jcks_ui and is set in /jckssetup, Appearance:
- style preset: JCKS Indigo, Monochrome, Midnight, Carbon, Emerald, Crimson or Aurora,
- dark or light mode and an accent colour,
- corners (sharp, soft or round) and a glass effect,
- reduce motion and interface size, 90 to 120 %,
- JCKS logo and version: admin windows only (default), everywhere, or hidden.
With Allow player settings on, every player opens /uisettings and may change, if allowed: design, dark or light, accent colour, language, size (85 to 120 %) and sounds. The choices are saved on the player's PC. jcks_ui/config.lua, Config.PlayerSettings can lock single fields on top of the bridge.