Installation
Requirements
| Dependency | Required? | Notes |
|---|---|---|
oxmysql | Yes | Database driver — all queries go through oxmysql |
OneSync | Yes | Must be enabled on your server |
FiveM Server 5848+ | Yes | Minimum artifact version |
es_extended / qb-core / qbx_core | Yes (one) | Any one framework — auto-detected |
ox_inventory / qs-inventory / codem-inventory | Optional | Auto-detected; falls back to framework default |
ox_target / qb-target | Optional | For target-eye interactions (lift, shop, craft...) |
screenshot-basic | Optional | For 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.
