Overview
TC Divisions
Job divisions, reserved chests, shops and service garages by job, division, grade or code.
VisionESXQBCoreQboxStandalonev1.2.0
tc-divisions lets you split every job into divisions (SWAT, brigade, medical unit…) and reserve chests, shops and service garages to a job, a division, a grade or a code. Everything is built in game, with a NUI interface based on tc-ui.
#Features
- Divisions per job: create, rename, colour, order, delete. A character can be in several divisions of their job; their grade never changes.
- Reserved chests (a stash of your inventory), with position, displayed prop, capacity, blip.
- Shops for items and outfits, free or paid (cash / card), run by a ped or an object.
- Service garages: vehicles sorted by division or “Common”, spawn spots, storage point, plate prefix, roof number (sector + badge number), key hand-over.
- Powerful access rules: job + minimum grade + divisions, and an optional code (AND / OR) with brute-force protection.
- Boss management (
/division): assign employees, manage vehicles and chests of their company. - Panic button (
/panic) alerting colleagues of the same service. - Journal of every action (creations, assignments, openings, purchases, spawns / storage, wrong codes).
#Dependencies
| Required | oxmysql, ox_lib (manifest), tc-ui |
| Frameworks | Vision (core), Qbox, QBCore, ESX, standalone (hooks to provide) |
| Inventories | ox_inventory, qb-inventory (and forks), qs-inventory, native Vision / ESX inventory |
| Optional | tc-logs (Discord log), skinchanger (outfit capture), object_gizmo (mouse placement outside Vision), key system (qs-vehiclekeys, Renewed-Vehiclekeys, wasabi_carlock, qb-vehiclekeys) |
Chests and inventories
Chests require an inventory that handles stashes (ox_inventory, qb-inventory, qs-inventory) or the native Vision inventory. With ESX's default inventory or in standalone, chests are unavailable; shops, garages and divisions work.
#Who does what
| Who | How |
|---|---|
| Staff | /divgestion: full menu (divisions, chests, shops, garages, journal) |
| Players | /division: see their company, grade, division |
| Bosses | /division: assign online employees, remove members, manage vehicles and chests |
| Everyone | E on a chest / shop / garage they can access |
#Pages
InstallationStep by step and items to create.ConfigurationEvery `config.lua` option.Access and managementAccess rules, codes, staff menu, boss management.CommandsCommands, keys and rights.Exports & APIWhat your scripts can call.DatabaseThe full SQL.TroubleshootingFrequent errors.
#In this section
InstallationInstall tc-divisions: resources, server.cfg, database, items and per-framework notes.ConfigurationEvery tc-divisions config.lua option: bridge, staff, limits, codes, garages, panic, images.Access and managementAccess rules, codes, the full staff menu and boss management.Commandstc-divisions commands, keys and access rights.Exports and APIRead a player's divisions from another script, open menus, add vehicles to a garage.DatabaseThe full tc-divisions SQL: 9 tc_div_* tables.TroubleshootingFrequent tc-divisions errors: chests unavailable, access denied, vehicle keys, missing images.