Installation
Requirements
Required
- oxmysql - Database driver (GitHub (opens in a new tab))
- ox_lib - UI and utility library (GitHub (opens in a new tab))
- Your chosen framework (QBox, QB-Core, or ESX)
Optional
- ox_target (for NPC interaction)
- Discord webhook (for admin logging)
Installation Steps
Step 1: Download the Resource
Download legends_tax from your Keymaster grants or the store.
Step 2: Extract to Resources
Place the legends_tax folder into your server's resources directory.
resources/
└── legends_tax/
├── fxmanifest.lua
├── config.json
├── permissions.lua
├── client/
│ ├── config.lua
│ └── main.lua
├── server/
│ ├── core/
│ ├── database/
│ ├── tax/
│ ├── admin/
│ └── events/
├── shared/
│ ├── framework.lua
│ └── vehicles.lua
└── html/
└── (UI files)Step 3: Add to Server Config
Add the following to your server.cfg:
ensure oxmysql
ensure ox_lib
ensure qbx_core # or qb-core or es_extended
ensure legends_taxImportant: oxmysql, ox_lib, and your framework must start before legends_tax.
Step 4: Configure Admin Permissions
Edit permissions.lua to set up admin access.
Option 1: ACE Permissions (Recommended)
Add to your server.cfg:
add_ace group.admin tax.admin allowEnsure in permissions.lua:
Permissions.UseAcePermissions = true
Permissions.AcePermission = "tax.admin"Option 2: Whitelist Specific Players
Edit permissions.lua:
Permissions.UseWhitelist = true
Permissions.Whitelist = {
"steam:11000010000000", -- Steam ID
"discord:123456789012345678", -- Discord ID
"license:abcdef1234567890", -- Rockstar License
}Option 3: Both Methods
Enable both for flexible access:
Permissions.UseAcePermissions = true
Permissions.UseWhitelist = true
Permissions.RequireBoth = false -- Player needs only ONE to accessStep 5: Database Setup (Automatic)
Database tables are created automatically on first resource start. No manual SQL import required!
The resource creates these tables automatically:
player_tax_datatax_invoicestax_audit_logstax_exemptionstax_statistics
Step 6: Configure Tax Settings
You have two options:
Option A: In-Game Admin Panel (Recommended)
- Start the server
- Join as admin
- Use
/taxadminto open the admin panel - Configure all settings through the UI
Option B: Edit config.json
Edit config.json directly for initial configuration. See Configuration for all options.
Step 7: Restart Server
Restart your server or use refresh and ensure legends_tax.
Verification
After installation:
- Join the server as admin
- Use
/taxadminto open the admin panel - Check "Dashboard" tab for statistics
- Use "Configuration" tab to verify settings
- Check server console for framework detection message
Commands
| Command | Permission | Description |
|---|---|---|
/taxui | Everyone | Open tax invoice viewer |
/taxadmin | Admin | Open admin panel |
/taxclose | Everyone | Close any open tax UI |
Troubleshooting
"No supported framework found"
Ensure your framework resource is started before legends_tax in server.cfg.
Admin panel not opening
- Check permissions in
permissions.lua - Verify ACE permissions in
server.cfg - Check server console for permission errors
Database tables not created
- Ensure
oxmysqlis running - Check database connection in your server config
- Look for SQL errors in server console
Need help? Join our Discord (opens in a new tab) and open a support ticket!