Troubleshooting

This section covers common issues you might encounter when using Guardex and how to resolve them.

Common Issues

Steam Requirement

If Config.RequireSteam is set to true, players must have Steam running to connect to the server. If a player tries to connect without Steam, they will see a message explaining the requirement.

Solution:

  • Ensure players have Steam running before connecting
  • If you don't want to require Steam, set Config.RequireSteam = false in your config file

Database Connection

Guardex requires oxmysql to connect to the database. If you encounter database connection issues, you might see error messages in the server console.

Solution:

  • Ensure oxmysql is properly installed and started before guardex_ac
  • Check your database credentials in your server.cfg
  • Verify that the necessary tables have been created
  • Check the server console for specific error messages

Admin Access

If you cannot access the admin panel or use admin commands, there might be an issue with your permissions.

Solution:

  • Ensure your identifier is added to the Config.Whitelist.Admins table
  • Verify that you have the guardex.admin ACE permission
  • Check the server console for any error messages
  • Try using the /gxdebug command to test if the admin menu works

Webhook Issues

If webhooks are not working, you might not receive notifications in your Discord server.

Solution:

  • Verify that the webhook URLs are correct
  • Ensure Config.Webhooks.Enabled is set to true
  • Test the webhooks with /gxtestwebhook all
  • Check Discord's rate limits (max 30 requests per minute)
  • Ensure the webhook has not been deleted or moved in your Discord server

False Positives

If legitimate players are being flagged for cheating, you might be experiencing false positives.

Solution:

  • Review the detection logs to identify which detection is causing the false positive
  • Disable or adjust the sensitivity of the problematic detection in the config file
  • Add the affected players to the whitelist if appropriate
  • Check if any other resources might be conflicting with Guardex

Performance Optimization

If you experience performance issues with Guardex, try the following optimizations:

  • Disable intensive detection features in Config.Detections
  • Increase detection intervals in the code
  • Optimize database queries by adding indexes
  • Monitor server performance with /txadmin/status
  • Ensure your server hardware meets the recommended specifications

Reporting Issues

If you encounter issues that you cannot resolve, please report them through our support channels:

  • Join our Discord server and open a support ticket
  • Provide as much detail as possible, including:
    • Server logs
    • Configuration settings
    • Steps to reproduce the issue
    • Error messages
  • Be patient as we investigate and resolve your issue

Logs Location

Guardex logs are stored in the following locations:

  • Server console: Real-time logs
  • Database: Detection and ban logs
  • FiveM server logs: server-data/logs