JCKSDocs
JCKS BridgeV2Reference

Frameworks and systems

Every framework, inventory, target, banking, keys, phone, MDT, fuel and clothing resource the bridge supports, in detection order.

How detection works

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

  1. Started pass. The first resource of the list below that is started or starting wins.
  2. Installed pass. If none is started yet, for example because of a wrong start order, the first one that exists on the server wins. The bridge then waits for it to start.

A system that is saved in the setup but not installed on the server falls back to detection, and the console asks you to save the new choice in /jcks. If nothing is found, the fallback in the last column is used. The value custom (framework, inventory, company accounts, clothing) is never picked by detection, you have to choose it, see Custom framework and inventory. The order matters when you run more than one supported resource. Qbox ships a qb-core compatibility layer, so qbx_core is always checked before qb-core. To skip detection, pick a fixed value in /jcks, Environment and Integrations, or set it in settings/config.lua.

Supported resources

System Config key Detection order (resource, value) Fallback
Framework Framework qbx_core (qbx), es_extended (esx), qb-core (qb), ox_core (ox). Manual only: custom standalone
Inventory Inventory codem-inventoryv2, tgiann-inventory, qs-inventory, ak47_inventory, jaksam_inventory, core_inventory, codem-inventory, jpr-inventory, ps-inventory, lj-inventory, origen_inventory (started only), then qs-inventory, ox_inventory, qb-inventory. Manual only: custom framework
Target Target jcks_lib (jcks), tgiann-target, sleepless_interact, ox_target, qb-target, qtarget, interact none
Company accounts Society Renewed-Banking, okokBanking, qs-banking, tgg-banking, wasabi_banking, fd_banking, snipe-banking, esx_addonaccount, qb-banking, qb-management. Manual only: custom internal
Vehicle keys Keys qbx_vehiclekeys, qb-vehiclekeys, wasabi_carlock, MrNewbVehicleKeys, Renewed-Vehiclekeys, qs-vehiclekeys, vehicles_keys, VehicleKeyChain, ak47_vehiclekeys, mk_vehiclekeys, t1ger_keys, brutal_keys, cd_garage, okokGarage, jcks_vehicles none
Phone Phone jcks_electronics, lb-phone, qs-smartphone-pro, qs-smartphone, sd-phone, yseries, gksphone, roadphone, okokPhone, 17mov_Phone, high-phone, jpr-phonesystem, npwd, ps-phone, qb-phone none
MDT Mdt jcks_jobs, ps-mdt, wasabi_mdt, lb-tablet, tk_mdt, piotreq_gpt none
Fuel Fuel ox_fuel, LegacyFuel, cdn-fuel, ps-fuel, lj-fuel, okokGasStation, lc_fuel, Renewed-Fuel, qs-fuelstations, rcore_fuel none
Clothing Clothing rcore_clothing, tgiann-clothing, bl_appearance, qs-appearance, codem-clothing, 17mov_CharacterSystem, p_appearance, illenium-appearance, fivem-appearance, qb-clothing, esx_skin. Manual only: custom none

lation_interact, core_focus and meta_target answer the ox_target and qb-target exports themselves. Auto detection does not find them, pick ox_target or qb-target by hand.

Inventory limits

Inventory Setup label Limits
codem-inventoryv2 Codem Inventory AIO none
tgiann-inventory tgiann-inventory none
qs-inventory Quasar Inventory none
ak47_inventory ak47_inventory none
jaksam_inventory jaksam_inventory none
core_inventory core_inventory no item metadata
codem-inventory Codem mInventory no item metadata, no player search
jpr-inventory jpr-inventory none
ps-inventory ps-inventory none
lj-inventory lj-inventory none
origen_inventory origen_inventory none
ox_inventory, qb-inventory none

Without item metadata, physical vehicle keys stay off. Without stashes, job stashes and lockers do not open.

What each fallback means

Value Effect
Framework custom Your own core through editable/server_framework.lua and editable/client_framework.lua. Job definitions created in JCKS go to jcks_bridge_jobdefs, owned vehicles to jcks_owned_vehicles.
Inventory custom Your own inventory through editable/server_inventory.lua and editable/client_inventory.lua. With the framework custom, the value framework uses the same files.
Framework standalone No framework. The bridge keeps character profiles, jobs and owned vehicles in its own tables (jcks_bridge_profiles, jcks_bridge_jobdefs, jcks_owned_vehicles). Admins come from ACE groups.
Inventory framework The default ESX or QBCore inventory. Items carry no metadata, so physical vehicle keys stay off. Player search is not available. Job stashes and lockers do not open (OpenStash returns false, 'stash_unsupported').
Target none JCKS scripts use floor markers and a text prompt instead
Company accounts internal Balances are stored in jcks_bridge_accounts, no banking resource needed
Vehicle keys none No keys are given. Use editable/server.lua for another key script.
Phone none Phone mails and notifications arrive as normal notifications
Fuel and clothing none Fuel is only set through the native level, wardrobes do not open

Framework notes

Framework Character identifier Duty Native multijob Admin groups
Qbox citizenid onduty yes ACE group, for example admin means group.admin
ESX Legacy identifier onDuty (ESX 1.11 and newer) no Player group (xPlayer.getGroup)
QBCore citizenid onduty no Permission level (god, admin, mod)
ox_core no ox group or ACE group
custom what GetIdentifier returns GetJob().onDuty, SetDuty no InGroup or ACE group
standalone bridge profile no ACE group (group.admin)

Jobs created by JCKS scripts are written into the framework's own storage: ESX jobs and job_grades, QBCore AddJob and UpdateJob, Qbox CreateJob, ox_core groups. Other resources then see them as normal framework jobs.

Compatibility layers

Setting Default What it does
Licenses.esxCompat true Answers esx_license events and exports when esx_license is not running
Licenses.syncEsxLicense true While esx_license runs, licences it grants or removes are copied into the bridge
Licenses.mirrorEsx true ESX only: writes every licence into user_licenses too
Licenses.importEsx true ESX only: imports existing user_licenses rows once on first start
SocietyCompat.esx true Company accounts internal only: answers esx_addonaccount and esx_society calls when those resources are not running

Phones

Wiretaps in jcks_jobs read texts and call records through the bridge. lb-phone is hooked automatically: texts through lb-phone:messages:messageSent, answered and ended calls with their duration through lb-phone:callAnswered and lb-phone:callEnded. Company calls are skipped. Any other phone reports traffic with one server call:

lua
exports.jcks_bridge:PhoneIntercept({
    kind = 'sms',
    from = '555-0182',
    to = '555-0199',
    text = 'message body',
    duration = 94,
})

kind is 'sms' or 'call'. text is the message of an sms, duration the call length in seconds, both optional. Cell tower triangulation in the MDT works with every phone and needs no integration.

Adding an unsupported resource

You use Edit
Another key script editable/server.lua, Editable.GiveKeys and Editable.RemoveKeys
Another notify, progress, skill check or text UI Provider Custom, functions in editable/client.lua, see Providers
Another clothing script editable/client.lua, Editable.OpenWardrobe and Editable.RestoreCivilian
Another fuel script editable/client.lua, Editable.SetFuel and Editable.GetFuel
Your own staff system editable/server.lua, Editable.IsAdmin
A renamed framework or inventory fork Pick it by hand in the setup. The fork must keep the original exports.
Your own core or a core JCKS does not know Framework Custom core, see Custom framework and inventory
An inventory JCKS does not know Inventory Custom inventory, same page
Job money kept by your core Company accounts Custom accounts, Editable.Society in editable/server_framework.lua