This guide provides detailed instructions for installing and setting up Pixel Logs on your FiveM or RedM server.
Important
Before installing Pixel Logs, ensure you have:
- A FiveM or RedM server
- A Discord webhook URL
- Basic knowledge of server configuration
Tip
Always download the latest release from the official GitHub repository to ensure you have the most up-to-date version.
- Visit the GitHub repository
- Download the latest release ZIP file
- Extract the contents to your server's resources directory
-
Create a new webhook in your Discord server:
- Go to Server Settings > Integrations > Webhooks
- Click "New Webhook"
- Give it a name (e.g., "Server Logs")
- Copy the webhook URL
-
Set the webhook URL in your server configuration:
- Open your
pixel_convars.cfgfile - Set the
pixel_logs_webhookconvar to your webhook URL:set pixel_logs_webhook "YOUR_DISCORD_WEBHOOK_URL"
- Open your
Note
For a complete list of available convars, see the Convars Guide.
- Open the
pixel_convars.cfgfile - Review and adjust the settings as needed
- Save the file
- Open your
server.cfgfile - Add the following line:
ensure pixel_logs
- Add the following line to load your convar settings:
exec "pixel_convars.cfg"
- Save all changes
- Restart your server or use the
refreshandensure pixel_logscommands in the server console
Tip
After installation, verify that Pixel Logs is working correctly by checking your Discord channel for logs.
- Check your server console for any error messages
- Join your server with a test account
- Verify that join logs appear in your Discord channel
- Test other logging features (chat, commands, etc.)
Caution
If you encounter issues during installation, enable debug mode to get more detailed error information.
- Verify your webhook URL is correct
- Check your server console for error messages
- Ensure the resource is started (use
ensure pixel_logsin the console) - Check your Discord channel permissions
- Verify all required convars are set
- Check for syntax errors in your configuration files
- Enable debug mode to get more detailed error information
To enable debug mode, set the following convar:
set pixel_logs_debug "true"This will provide more detailed error information in your server console and Discord logs.
The basic configuration is handled through convars in pixel_convars.cfg. See Configuration for detailed information.
For advanced configuration, you can modify the following files:
configs/config.lua: Main configuration fileconfigs/identifiers.lua: Identifier configurationconfigs/templates.lua: Message templates
To verify the installation:
- Start your server
- Check the server console for the Pixel Logs startup message
- Join the server and perform some actions
- Check your Discord channel for logs
If you encounter issues:
-
No Logs Appearing
- Verify your webhook URL is correct
- Check if the resource is started
- Ensure the log type is enabled
-
Resource Not Starting
- Check for errors in the server console
- Verify all dependencies are installed
- Ensure the resource name is correct in
server.cfg
-
Debug Mode
- Enable debug mode by setting
pixel_logs_debugtotrue - Check the debug webhook for detailed error information
- Enable debug mode by setting