Changelog
All notable changes. Semantic versioning: a renamed or removed config key is a major version.
All notable changes. Semantic versioning: a renamed or removed config key is a major version.
2.0.0 - 1 Dec 2026 (first Code Cartel product release)
The city script became a product: it runs on any framework, or none.
Added
- Any framework. Qbox, QBCore, ESX Legacy, ox_core and standalone, through cc_lib. The framework's garage table is read by a schema adapter (
server/owned.lua:player_vehicles,owned_vehicles,vehicles, or your own table viaServerConfig.Garage.schema). - Vehicle tiers anywhere. Categories come from
ServerConfig.Vehicles.models, qbx_core, qb-core, the ESXvehiclestable, then a built-in list of every base-game car (server/models.lua). - Feature toggles for every part (
Config.Features), enforced on the server. - Hooks:
afterJobStart,afterPartStowed,beforeSale,afterSale,beforeDispatch,isInsured,upgradeBought(plus the existingbeforeJobStart,payFilter,afterJobEnd). - Exports:
getJob,endJob,getWorker,addXp,getHotList,rerollHotList,getTier(plusisWorking,hasYards,VinRecord). - No-target servers:
[E] Scrap this carand[E] Start choppingprompts at the bays. - Boot validation of every key's type and every cross-reference (
server/validate.lua), item checks against ox_inventory, qb-core shared items or the ESXitemstable. ServerConfig.Retention: VIN records and own-car archives purged in batches after N days.ServerConfig.UpgradeMoney.society: pay upgrade money into a society account (default: sink).Pay.dirtyAccount = 'auto',Pay.useBoost,Config.UI.brand,Config.UI.imagePath,Config.Parts.<part>.image,Config.Commands./scrapyard status. Item files for ox_inventory, the qb family and ESX ininstall/items/.- Tests: a five-framework boot matrix, every-feature-off run and an adversarial fuzz of every event (8,550 junk calls) in
tests/sim.lua.
Changed
- Police dispatch goes through cc_lib (ps-dispatch, cd_dispatch, qs-dispatch, rcore_dispatch, core_dispatch and more; a blip and notification with none).
ServerConfig.Dispatch.priorityis a number;codeadded. - Insurance is a configured integration (
ServerConfig.Connections.insurance) or theisInsuredhook; off by default. - The offline recovery fee works on Qbox/QBCore, ESX and ox_core banks.
- Bench materials default to common names: the seat yields plastic (was cotton), the battery iron (was lead ore).
Config.Localenow works (it was ignored); the convarcc_scrapyard:localestill wins.- Webhook convar
cc_scrapyard:webhook(the oldcc_scrapyard_webhookstill works). dutyBlockdefaults to police and ambulance;blockedPlatePrefixesand protected models no longer name one city's cars.- Every public function documents its arguments and return values.
Removed
- Hard links to one city's resources (its dispatch/BOLO system, its treasury, its job centre). Use the hooks for the same behaviour.
Origins (1.0.0 - 1.6.0, Oct - Nov 2026)
Built for a live roleplay city: the strip-and-crush yard and the chop shop (1.0), owner-tested in game (1.2), workshop tools, wheel nuts and the crusher sequence (1.3), the NUI tablet (1.4), the header and player card (1.5), per-bay cages, E to stow and painted floor markings (1.6). The full 1.x history is kept in the development repository.