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
| Framework | Roster | Framework job mirror | Offline job change | Status |
|---|---|---|---|---|
| Qbox (qbx_core) | ours | AddPlayerToJob / RemovePlayerFromJob (multijob) | yes, directly | Tested |
| QBCore | ours | Player.Functions.SetJob | queued until login | Tested |
| ESX Legacy | ours | xPlayer.setJob | queued until login | Tested |
| ox_core | ours | player.setGroup | queued until login | Tested |
| ND_Core / standalone | ours | none (mode = 'none') | n/a | Tested |
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
| Registry | How | Status |
|---|---|---|
Internal (cc_government_licences) | our table | Tested |
| tcc_gms (The Code Cartel City Hall) | its trusted-issuer exports + licence events | Tested |
| Anything else | licenceChanged hook / server event to mirror into it | Tested (hook fires) |
Phone, dispatch, fuel, keys, clothing
Not used by this resource.
Known conflicts
- Another script that also sets the
government/lawyerjob on hire will fight the mirror: give one of them the job, or setsyncGovJob = false. - A City Hall MLO that moves the doors: update
Config.Locations(coords are config only).