TC ScriptDocumentation

Installation

Install tc-mechanic step by step: resources, server.cfg, minimal configuration and creating workshop points.

#1. Copy the resource

Put the tc-mechanic folder in resources.

#2. Start in the right order

In server.cfg, after oxmysql, ox_lib, your framework and tc-ui:

server.cfg
ensure oxmysql
ensure ox_lib
ensure es_extended      # or core / qb-core / qbx_core
ensure tc-ui
ensure tc-mechanic

The script must start after its framework: detection happens at load time.

#3. Database

Import sql/install.sql (recommended). The tc_mech_* tables are created at start-up anyway, with no risk of duplicates. The full SQL is on the Database page.

#4. Edit config.lua

Open config.lua and check at least:

OptionWhy
Config.MechanicJobsMechanic job names, e.g. { 'mechanic', 'bennys' }
Config.BridgeLeave on auto
Config.VehiclesESX / QBCore / Qbox: SQL table of your owned vehicles (table and column names)
Config.Bridge.SocietyESX / QBCore / Qbox: society account that receives the money

The full list is on the Configuration page.

#5. Create the workshop points

In game, as staff, type /mecagestion (on Vision, also in /gestion) and create the points for each workshop. Each point is created at your position or placed with the gizmo.

Point typeFor whomUse
CustomisationCustomer in the driver seatBodywork / interior / performance / lighting configurator
Paint boothCustomer driving, then mechanicColour and finish choice; the mechanic picks up the spray gun there
Wheels & tyresCustomer in the driver seatRims, tyres, smoke
DiagnosticMechanicIf a workshop has one, diagnostics must be done there
Parts stockMechanicPick up parts to fit

#6. Check

Type /mecadiag (staff or console): the report shows the detected framework, billing mode and account, plus points, orders and tracked vehicles. Anything missing is flagged.

Coexisting with another mechanic system

If your server already has a customisation system (Vision core, ESX/QB scripts), disable its “Custom” points in the workshops to avoid duplicates for players, then create the tc-mechanic points.

Items

No item to create.

#Updating

Replace the folder while keeping your config.lua. Prices, durations, wear and permissions are stored in the database (tc_mech_settings), so they are preserved.

Last updated : 7 November 2026© 2026 TC Script