Solutions to common issues when connecting your FiveM server.
If the connection between your FiveM server and Z-UCP isn't working, it's usually due to a misconfiguration. Here are the most common problems and their solutions.
401 UnauthorizedCause: The API key in your config.lua is invalid or belongs to another project.
Solution:
config.lua.Connection Refused / TimeoutCause: Your server cannot reach our API (firewall) or the ApiUrl is incorrect.
Solution:
Config.ApiUrl is set to https://api.z-hub.app.curl https://api.z-hub.app/api/v2/health.Bridge Secret MismatchCause: The bridge secret in the panel doesn't match the one on the server. Solution:
z-bridge entered in the server.cfg (ensure z-bridge)?If you can't find the problem, activate debug mode in config.lua:
Config.Debug = true
Restart the server and look at the z-bridge.log file in the plugin folder. All requests and error messages are logged there in detail.
Deactivate debug mode as soon as the problem is solved to keep the log files small.