Business Management - Universal ESX/QB-Core System
Professional business ownership and management system with multi-language support
Description
Business Management is a complete business ownership system that allows players to purchase, manage, and profit from various types of businesses. With automatic framework detection, it seamlessly works with both ESX and QB-Core without any manual configuration.
Players can buy businesses, hire employees, manage finances, and pay weekly taxes. The system includes 17 pre-configured businesses (cafes, restaurants, bars, nightclubs, mechanic shops) with full customization support.
Features
Business System:
- 17 pre-configured businesses with easy addition of custom locations
- Visual markers (green for available, red for owned)
- Automatic framework detection (ESX Legacy, ESX 1.9+, QB-Core)
- Configurable ownership limits per player
- Buy and sell businesses (65% return on sale)
Employee Management:
- Invite system - owners invite players by ID
- Full job integration with grade management
- Fire employees with permission checks
- Automatic job assignment on hire
Financial System:
- Society accounts (ESX) or management system (QB-Core) integration
- Deposit and withdraw from business accounts
- Complete transaction tracking
- Money transfer capabilities
Tax & Payment System:
- Automatic weekly tax collection
- Grace period (2 days default) before business seizure
- Payment history tracking
- Custom tax rates per business type
- Auto-seizure for unpaid taxes
Security Features:
- Business license requirement (optional, vms_documentsv2 integration)
- Gang member restrictions (optional, eth-gangs integration)
- Server-side validation for all actions
- SQL injection protection with parameterized queries
Discord Integration:
- Webhook logging for all business activities
- Rich embeds with custom colors
- Logs: purchases, sales, hires/fires, deposits/withdrawals, taxes, seizures
Multi-Language Support:
- Built-in English and Russian translations
- Easy to add custom languages
- 100+ translation keys across 4 categories
- Config files and locales fully editable
How It Works
For Business Owners:
- Walk to a business marker and press E
- Purchase the business if you have sufficient funds and required license
- Manage employees - invite, set grades, fire
- Handle finances - deposit profits, withdraw for expenses
- Pay weekly taxes automatically from business account
- Sell business back to government for 65% of purchase price
For Employees:
- Receive invitation alert from business owner
- Accept or decline job offer
- Work at the business with assigned grade
- Earn salary through the business job system
Dependencies
Required:
- oxmysql - Database management
- ox_lib - UI library
- es_extended OR qb-core - Framework
- esx_addonaccount (ESX) or qb-management (QB-Core) - Society accounts
Optional:
- vms_documentsv2 - Business license validation
- ox_inventory - Inventory system (for license checks)
- eth-gangs - Gang system integration
- Discord webhook - Activity logging
Installation
- Extract the resource to your serverβs
resourcesfolder - Run the SQL file:
- ESX: Execute
install_esx.sql - QB-Core: Follow instructions in
install_qb.sql
- ESX: Execute
- Configure settings in
config.lua - Add to
server.cfg:ensure cgc_cafe - Restart your server
Full installation guide included in documentation
Configuration
Basic Setup:
Config.Locale = 'en' -- Language: 'en' or 'ru'
Config.MaxBusinessesPerPlayer = 1 -- Ownership limit
Config.TaxCheckIntervalMinutes = 10080 -- 7 days
Config.GracePeriodDays = 2 -- Before seizure
Config.RequireBusinessLicense = false -- License requirement
Config.RestrictGangMembers = false -- Gang restrictions
Config.DiscordWebhook = nil -- Discord logging (optional)
Add Custom Business:
["my_business"] = {
label = "My Business",
coords = vector3(x, y, z),
ownedCoords = vector3(x, y, z),
price = 50000,
weeklyTax = 1500,
job = { name = "my_business", bossGrade = 4 },
marker = {
type = 1,
scale = vector3(1.5, 1.5, 0.5),
color = {
free = { r = 8, g = 127, b = 91, a = 100 },
owned = { r = 200, g = 50, b = 50, a = 100 },
},
},
}
Export Functions
Server-Side:
exports['cgc_cafe']:GetBusinessData(businessId)
exports['cgc_cafe']:GetAllBusinesses()
exports['cgc_cafe']:IsBusinessOwner(identifier)
exports['cgc_cafe']:GetPlayerBusiness(identifier)
exports['cgc_cafe']:GetBusinessEmployees(businessId)
exports['cgc_cafe']:GetPlayerBusinessCount(identifier)
exports['cgc_cafe']:ForcePayTaxes(businessId)
Client-Side:
exports['cgc_cafe']:OpenBusinessMenu(businessId)
exports['cgc_cafe']:GetCurrentBusiness()
exports['cgc_cafe']:RefreshBusinessUI()
Full API documentation included with purchase
Languages
Included:
English (Complete)
Russian
Add Your Own:
- Copy
locales/en.luatolocales/your_lang.lua - Translate all strings
- Set
Config.Locale = 'your_lang'
Documentation
8 comprehensive documentation files included:
- README.md - Complete feature overview (356 lines)
- QUICKSTART.md - 5-minute setup guide (220 lines)
- INSTALL.md - Step-by-step installation
- API.md - Export functions reference
- LOCALIZATION.md - Translation system guide (280 lines)
- LOCALIZATION_EXAMPLES.md - Code examples (450 lines)
Total: 1,200+ lines of professional documentation
Screenshots
Purchase
Price: $29.99 USD
Buy on Tebex
Whatβs Included:
Encrypted script (FiveM Escrow protected)
Lifetime free updates
Full documentation (8 files, 1,500+ lines)
Discord community access
Installation support
Bug fixes and patches
Config files fully editable
Technical Details
Performance:
- Optimized marker rendering (distance-based)
- Efficient database queries with caching
- Minimal client-server communication
- 0.00ms when player is far from markers
Security:
- Server-side validation for all actions
- Permission checks for management functions
- SQL injection protection (parameterized queries)
- Encrypted code (FiveM Escrow)
Compatibility:
- ESX Legacy (es_extended)
- ESX 1.9+ (All versions)
- QB-Core (qb-core)
- Automatic framework detection
- No manual configuration needed
Resource Information
| Code is accessible | No |
| Subscription-based | No |
| Lines (approximately) | ~2,500 code |
| Requirements | oxmysql, ox_lib, ESX/QB-Core |
| Support | Yes |
