Troubleshooting
This guide covers common issues and their fixes.
1. Installation Errors
Error: Missing oxmysql dependency
- Cause:
oxmysqlisn’t running as a server resource. - Fix: Ensure
oxmysqlappears in yourserver.cfg:cfgensure oxmysql
Database table doesn’t exist
- Cause: Missing or incomplete setup scripts.
- Fix: Rerun SQL setup for
dnd_identitydocs_holdersanddnd_identitydocs_config.
Error: screenshot-basic compatibility
- Cause:
screenshot-basicis missing or outdated. - Fix: Ensure the
screenshot-basicresource is compatible with your runtime.
2. Configuration Issues
Debug mode accidentally left on
- Cause:
Config.Debug = trueremains active. - Fix: Set to
falsefor all production environments:luaConfig.Debug = false
Cannot view holder documents
- Cause: Access control is misconfigured.
- Fix: Check the
Config.AccessControltable to verify player permissions.luaConfig.AccessControl = { ['police'] = 2 -- Ensure proper jobs & grades are listed }
3. Feature Bugs
Player can’t open radial menu
- Cause:
qbx-radialmenuisn’t installed/enabled. - Fix: Add
qbx-radialmenutoserver.cfgand ensure it’s operational.
Archive filters not working
- Cause:
Config.ArchiveFilterByJobvalue misconfigured. - Fix: Set the value to
trueto enforce role-specific entries.luaConfig.ArchiveFilterByJob = true
4. Compatibility Problems
Error with legacy ESX
- Cause: ESX version compatibility issues.
- Fix: Update ESX or use QBox compatibility mode for seamless integration.
Document commands not responding
- Cause: Missing custom command bindings.
- Fix: Add
HolderDocumentsto theconfig.lua:luaConfig.CustomCommands = { HolderDocuments = '/holder_documents' }
General Debugging Tips
- Check the server console for errors.
- Verify the latest database seed scripts are applied.
- Consult the
Configtable against the newest documentation.