JCKSDocs
JCKS BridgeV1Reference

Frameworks and systems

Detection order and fallbacks of every system in JCKS Bridge 1.0.0.

How detection works

With the value 'auto' every system is detected in two passes:

  1. Started pass. The first resource of the list that is started wins.
  2. Installed pass. If none is started yet, the first one that exists on the server wins, and the bridge waits for it to start.

Qbox ships a qb-core compatibility layer, so qbx_core is checked before qb-core. To skip detection, pick a fixed value in the setup wizard (/jckssetup) or in shared/defaults.lua.

System Config key Detection order Fallback
Framework Framework qbx_core (qbx), es_extended (esx), qb-core (qb) none
Inventory Inventory ox_inventory, qb-inventory framework
Target Target ox_target, tgiann-target, qb-target none
Company accounts Society Renewed-Banking, esx_addonaccount, qb-banking, qb-management internal
Vehicle keys Keys qbx_vehiclekeys, qb-vehiclekeys, wasabi_carlock, MrNewbVehicleKeys, Renewed-Vehiclekeys, jcks_vehicles none
Phone Phone lb-phone, qs-smartphone-pro, qs-smartphone, sd-phone, yseries, gksphone, roadphone, okokPhone, 17mov_Phone, npwd, ps-phone, qb-phone none
Fuel Fuel ox_fuel, LegacyFuel, cdn-fuel, ps-fuel, lj-fuel, okokGasStation, lc_fuel none
Clothing Clothing illenium-appearance, fivem-appearance, qb-clothing, esx_skin none

Fallbacks

Value Effect
Inventory framework Default ESX or QBCore inventory. No stashes (OpenStash returns false, 'stash_unsupported') and no player search ('search_unsupported').
Target none JCKS resources draw floor markers and an [E] prompt
Company accounts internal Balances in jcks_bridge_accounts, no banking resource needed

Notifications, progress and prompts

V1 has no provider choice. client/editable.lua sends notifications, progress bars and text prompts to jcks_ui when it runs, and to ox_lib otherwise. Replace the functions in that file to use another resource.

Phones

lb-phone texts and calls are hooked automatically for jcks_jobs wiretaps. Other phones report traffic with exports.jcks_bridge:PhoneIntercept({ kind, from, to, text, duration }), where kind is 'sms' or 'call'.

Adding an unsupported resource

You use Edit
Another key script server/editable.lua, GiveKeys and RemoveKeys
Another notify, progress or text UI client/editable.lua
Another clothing script client/editable.lua, OpenWardrobe and RestoreCivilian
Another fuel script client/editable.lua, SetFuel. Most fuel scripts use exports[name]:SetFuel(vehicle, fuel), which works with Fuel = 'your_resource'.
Your own staff system server/editable.lua, IsAdmin
A renamed framework or inventory fork Pick it in the setup wizard. The fork must keep the original exports.