Skip to content

Compatibility

cc_government talks to other scripts only through cc_lib (detected at runtime, with a fallback for every category) and through the small adapters named below. Nothing is a hard dependency except cc_li

cc_government talks to other scripts only through cc_lib (detected at runtime, with a fallback for every category) and through the small adapters named below. Nothing is a hard dependency except cc_lib and oxmysql.

Legend: Tested = run in the offline suites (tests/) against a faithful stub of that script's API. Bridged = handled by cc_lib's own adapter (see cc_lib's matrix). In-game = needs the owner's pass on a real server (listed in PRODUCT.md).

Frameworks

FrameworkRosterFramework job mirrorOffline job changeStatus
Qbox (qbx_core)oursAddPlayerToJob / RemovePlayerFromJob (multijob)yes, directlyTested
QBCoreoursPlayer.Functions.SetJobqueued until loginTested
ESX LegacyoursxPlayer.setJobqueued until loginTested
ox_coreoursplayer.setGroupqueued until loginTested
ND_Core / standaloneoursnone (mode = 'none')n/aTested

On single-job frameworks (ESX, QBCore) giving the government or lawyer job replaces the player's current job, as every job does there. Turn the mirror off with ServerConfig.Jobs.syncGovJob = false or ServerConfig.Bar.giveJob = false if you do not want that.

Banking and societies (department funding, sweeps)

Through CC.money.addSociety / removeSociety / getSociety: esx_addonaccount / esx_society, qb-management, qb-banking, Renewed-Banking, okokBanking, fd_banking, cc_business and the others cc_lib bridges (Bridged). A department that is not a society account uses kind = 'export' against any script's export (Tested).

The treasury itself is our own table: no banking script can see or withdraw it.

Player money (candidacy fee, bar fee, service payouts)

CC.money.remove / add on the bank account, every framework (Bridged).

Target / interaction

ox_target, qb-target, qtarget, and cc_lib's built-in [E] proximity prompt when none is running (Bridged).

Notify

ox_lib, okokNotify, mythic, framework notify, GTA feed fallback (Bridged).

Inventory (optional wallet item only)

ox_inventory, qb-inventory, ps-inventory, qs-inventory, codem, core_inventory and framework inventories through CC.inventory (Bridged). Off by default (walletItem = nil).

Licence registry

RegistryHowStatus
Internal (cc_government_licences)our tableTested
tcc_gms (The Code Cartel City Hall)its trusted-issuer exports + licence eventsTested
Anything elselicenceChanged hook / server event to mirror into itTested (hook fires)

Phone, dispatch, fuel, keys, clothing

Not used by this resource.

Known conflicts

  • Another script that also sets the government / lawyer job on hire will fight the mirror: give one of them the job, or set syncGovJob = false.
  • A City Hall MLO that moves the doors: update Config.Locations (coords are config only).