Installation
Requirements
| Dependency | Required? | Notes |
|---|---|---|
oxmysql / mysql-async / ghmattimysql | Yes (one) | Database driver — auto-detected |
ox_lib | Yes | Required for 3D coordinate picker |
FiveM Server 5848+ | Yes | Minimum artifact version |
es_extended / qb-core / qbx_core | Optional | Any framework — auto-detected, standalone works |
ox_inventory / qs-inventory / qb-inventory | Optional | Auto-detected; falls back to framework default |
ox_target / qb-target | Optional | For target-eye interactions |
Steps
1. Extract Resource
Extract the code9_shop folder into your server's resources/ directory.
2. Add to server.cfg
ensure oxmysql
ensure ox_lib
ensure code9_shop
3. Database Setup
All database tables are created automatically on first start. No manual SQL required.
The script creates 4 tables: code9_shop_settings, code9_shop_stocks, code9_shop_category, and code9_shop_locations.
4. Configure
Edit shared/config.lua to set your preferred framework, inventory, notification system, admin permissions, and market settings.
5. Start Server
Restart your server. The script auto-detects your framework, inventory, and database provider. Check the server console for startup logs.
