Skip to main content

Installation

Step-by-step installation guide for Code9 Mechanic

This section

Installation

Requirements

DependencyRequired?Notes
oxmysqlYesDatabase driver — all queries go through oxmysql
OneSyncYesMust be enabled on your server
FiveM Server 5848+YesMinimum artifact version
es_extended / qb-core / qbx_coreYes (one)Any one framework — auto-detected
ox_inventory / qs-inventory / codem-inventoryOptionalAuto-detected; falls back to framework default
ox_target / qb-targetOptionalFor target-eye interactions (lift, shop, craft...)
screenshot-basicOptionalFor mechanic call screenshot feature

Steps

1. Extract Resource

Extract the code9_mechanic folder into your server's resources/ directory.

2. Add to server.cfg

ensure oxmysql
ensure code9_mechanic

3. Database Setup

All database tables are created automatically on first start. No manual SQL required.

If you prefer manual setup, run the SQL file located at:

install/sql/install.sql

4. Add Inventory Items

Add the required items to your inventory system. See the Items Setup page for copy-paste ready configurations.

5. Configure

Edit shared/config.lua to set up your mechanic locations, or use the in-game /mechanics editor command.

6. Start Server

Restart your server. The script auto-detects your framework and inventory provider. Check the server console for [CODE9_MECHANIC] startup logs.