Troubleshooting
Common Issues
Installation Problems
Error: "Database connection failed"
Symptom: Console shows database connection errors on server start.
Causes:
Incorrect database credentials
Database server not running
oxmysql not installed or not started
Solution:
# Check server.cfg for correct database connection
set mysql_connection_string "mysql://user:password@localhost/database"
# Ensure oxmysql is started before mechanic resources
ensure oxmysql
ensure dusa_bridge
ensure dusa_mechanicv2Verify database server is running and credentials are correct.
Error: "Failed to verify protected resource"
Symptom: Escrow verification fails when starting the resource.
Causes:
Keymaster not linked to your server
Wrong Cfx.re account
License expired or not purchased
Solution:
Visit keymaster.fivem.net
Verify your purchase shows as active
Ensure your server IP is linked to the correct keymaster account
Restart server completely after linking
Error: "ox_lib not found"
Symptom: Resource fails to start with ox_lib dependency error.
Solution:
Download ox_lib from GitHub if not installed.
Tablet Issues
Tablet won't open
Symptom: Using mechanic_tablet item does nothing.
Causes:
dusa_tablet resource not started
NUI errors in F8 console
Permission issues
Item not configured in inventory
Solutions:
Check server console for errors
Verify resource is running
Check F8 client console for JavaScript errors
Verify inventory item exists in
ox_inventory/data/items.lua:Check player has mechanic job:
Mechanic app not showing in tablet
Symptom: Tablet opens but mechanic app is missing from app list.
Causes:
App registration failed
dusa_mechanicv2 not started
Resource load order incorrect
Solutions:
Verify correct load order in
server.cfg:Check server console for app registration messages:
Restart both resources in order:
Tablet UI is blank or broken
Symptom: Tablet opens but shows blank screen or broken interface.
Causes:
NUI build not compiled
Web files missing
Cache issues
Solutions:
Rebuild NUI (if you have access to source):
Clear FiveM cache:
Close FiveM completely
Navigate to
%localappdata%/FiveM/FiveM Application Data/cacheDelete cache folder
Restart FiveM
Check F8 console for 404 errors or missing file warnings
Work Order Issues
Can't create work orders
Symptom: "Permission denied" or "Failed to create order" errors.
Causes:
Insufficient job permissions
Database table missing
Validation error in submitted data
Solutions:
Check player job and rank:
Verify database tables exist:
Check server console for validation errors showing which fields are invalid
Verify shop exists in
config.luaand employee is assigned to that shop
Work orders not syncing between players
Symptom: Other mechanics don't see newly created orders.
Causes:
Real-time events not configured
NUI callbacks failing
Client not refreshing data
Solutions:
Check server console for event errors
Refresh tablet by closing and reopening
Restart mechanic resource:
Verify both players are assigned to same shop
Can't complete work orders
Symptom: "Complete" button doesn't work or shows error.
Causes:
Insufficient permissions
Payment processing failure
Database update error
Solutions:
Verify rank (rank 1+ required to complete orders)
Check server console for payment errors
Verify customer has sufficient funds if payment is required
Check database for locked transactions or connection issues
Tuning Problems
Tuning menu won't open
Symptom: Tuning button does nothing or shows "Not in tuning zone" error.
Causes:
Vehicle not in tuning zone
Player not in vehicle
Player not driver (passenger)
Zone configuration error
Solutions:
Verify vehicle is within tuning zone bounds defined in config:
Ensure player is in driver seat (not passenger)
Check player has mechanic job
Increase zone radius if needed in
config.luaTest zone detection with debug mode:
Mods applied but vehicle doesn't change
Symptom: Money deducted but no visual change on vehicle.
Causes:
Client-server desync
Network ownership issue
Invalid mod configuration for specific vehicle
Vehicle model doesn't support selected mod
Solutions:
Exit and re-enter vehicle to force sync
Restart the resource with vehicle spawned:
Check mod configuration in
config.mods.luafor vehicle class compatibilityVerify vehicle model supports the mod type (some vehicles can't have certain bumpers, spoilers, etc.)
Check server console for mod application errors
Vehicle slower/worse after engine swap
Symptom: Performance degraded after upgrading engine.
Causes:
Handling configuration issue
Incorrect engine stats in config
Missing performance multipliers
Solutions:
Review handling values in
config.mods.lua:Check engine multipliers are properly applied
Test with stock engine to verify base handling is correct
Consult Vehicle Tuning Guide
Tuning price too high/low
Symptom: Tuning costs don't match expectations.
Solution:
Adjust prices in config.lua:
Individual mod prices can be set in config.mods.lua.
Framework Integration
ESX: Job not detected
Symptom: "You are not a mechanic" despite having the job.
Causes:
Job not in ESX database
Bridge not detecting ESX
Player data not loaded
Solutions:
Verify job exists in database:
Add job if missing:
Check bridge detection in server console:
Verify player is loaded before checking job
Restart ESX and mechanic resources:
QBCore: Society funds not working
Symptom: Can't withdraw/deposit to shop account.
Causes:
Management system not configured
Society account missing
Solutions:
Ensure qb-management is installed and started
Create society account in management system
Verify boss grade is configured correctly in
qb-core/shared/jobs.lua:
QBox: Compatibility issues
Symptom: Features not working with QBox framework.
Solution:
QBox is supported through dusa_bridge. Ensure you're using latest versions:
QBox core (latest)
dusa_bridge (latest)
Check server console for framework detection:
Performance Issues
Server lag when opening tablet
Symptom: Noticeable server performance drop when multiple players open tablet.
Causes:
Database queries not optimized
Too many simultaneous queries
No caching enabled
Solutions:
Enable caching in
config.lua:Optimize database queries by adding indexes:
Reduce query frequency in config if real-time sync is not critical
Monitor server performance with profiler to identify bottlenecks
High memory usage
Symptom: Resource using excessive memory.
Solutions:
Clear old work orders from database periodically:
Disable debug logging if enabled:
Restart resource periodically if running 24/7 server
Frequently Asked Questions
General
Q: Which frameworks are supported?
A: DUSA Mechanic supports ESX Legacy, QBCore, and QBox out of the box through the dusa_bridge abstraction layer. No code modifications needed.
Q: Is this compatible with [inventory system]?
A: Yes, supports ox_inventory, qb-inventory, qs-inventory, and other popular inventory systems via dusa_bridge auto-detection.
Q: Can I have multiple mechanic shops?
A: Yes! Configure multiple shops in config.lua. Each shop can have separate employees, inventories, and financial accounts.
Q: Does this work with other garage scripts?
A: Yes, especially dusa_modulargarages. The system is designed to integrate with most garage/vehicle scripts. See Garage Integration.
Q: Is source code available?
A: Partially. Some modules use FiveM escrow protection for security. Core logic is escrow-protected while configuration and integration points are open source. See Architecture.
Configuration
Q: How do I change tuning prices?
A: Edit MechanicConfig.Tuning.Prices in config.lua:
Q: Can I disable certain tuning categories?
A: Yes, set enabled = false for specific categories in config.mods.lua:
Q: How do I add custom vehicle mods?
A: See the detailed guide: Adding Vehicle Mods
Q: Can I customize the tablet interface?
A: Visual customization requires NUI modifications. Color schemes and icons can be adjusted in tablet configuration. For custom apps, see Creating Tablet Apps.
Permissions
Q: What are the default job ranks?
A: Default rank structure:
Rank 0: Trainee - View orders only
Rank 1: Mechanic - Create orders, perform tuning
Rank 2: Senior Mechanic - Assign orders to others
Rank 3: Manager - Manage inventory, hire employees
Rank 4: Owner - Full access, financial management
Q: Can I customize rank permissions?
A: Yes, edit MechanicConfig.Permissions in config.lua:
Q: How do I give someone mechanic job?
A: Depends on your framework:
Economy
Q: Where does money go when work order is completed?
A: Configurable in config.lua:
Option 1: All to shop society/management account
Option 2: Split between employee (commission) and shop
Option 3: Directly to employee (no shop cut)
Q: Can customers refuse to pay?
A: By default, payment is automatic on order completion. Can be made optional:
Q: How do I withdraw shop funds?
A: Shop owners (rank 4) use tablet:
Open Mechanic app
Navigate to Management → Finances
Click "Withdraw Funds"
Enter amount
Confirm
Money goes to personal bank account.
Development
Q: Can I create custom tablet apps?
A: Yes! The tablet platform supports custom apps. See Creating Tablet Apps for complete tutorial.
Q: How do I integrate with other scripts?
A: Use the mechanic API callbacks and exports. See Mechanic API for available endpoints.
Q: Is there a debug mode?
A: Yes, enable in config.lua:
This enables detailed console logging. See Debugging Guide.
Q: Can I contribute to development?
A: Community contributions are welcome for open-source modules, documentation improvements, and translations. Contact via GitHub or Discord.
Still Need Help?
Before Asking for Help
✅ Check console (F8 client + server) for errors
✅ Review this troubleshooting guide
✅ Ensure all resources are up to date
✅ Test with minimal resource configuration
✅ Verify all prerequisites are met
Providing Debug Information
When asking for help, include:
FiveM server version (artifact number)
Framework (ESX/QBCore/QBox) and version
DUSA Mechanic version
Console errors (both server and client F8)
Steps to reproduce the issue
Config.lua settings (if relevant)
Screenshots or video (if visual issue)
Support Channels
Documentation: Full Documentation
GitHub Issues: Report bugs and feature requests
Discord: Community support and discussions
Updates: Check for latest versions and patches
Emergency Fixes
Complete resource reset:
Database reset (⚠️ WARNING: Deletes all data):
Last Updated: 2024-01-20 Applies to: DUSA Mechanic v1.2.0+
Last updated