Troubleshooting
Common issues and solutions for SF-Crosshair.
Common Issues
Crosshair Not Showing
Problem: The crosshair doesn't appear when aiming.
Solutions:
-
Check if the script is enabled in config:
Config.DefaultEnabled = true -
Verify the crosshair is enabled in settings (F7 โ Settings tab)
-
Make sure you're using a weapon (crosshair shows with all weapons including hands)
-
Check server console for any errors during resource start
UI Panel Not Opening
Problem: Pressing F7 doesn't open the crosshair panel.
Solutions:
- Check if another resource is using the same keybind
- Verify the keybind in config:
Config.OpenKey = 'F7' - Try restarting the resource:
restart sf-crosshair - Check F8 console for JavaScript errors
Database Issues
Problem: Favorites or sharing not working.
Solutions:
-
Ensure the database table was created:
-- Run the crosshair.sql file -
Check server console for database connection errors
-
Verify your framework (ESX/QBCore) is properly configured
Sharing Problems
Problem: Can't share crosshairs or receive shared crosshairs.
Solutions:
- Make sure both players are online
- Check if the crosshair is saved in favorites (only favorites can be shared)
- Verify the PIN is correct (6 digits)
- For nearby sharing, ensure players are within 10 meters
Performance Issues
Problem: FPS drops or lag when using crosshair.
Solutions:
-
Reduce crosshair update frequency in config:
Config.UpdateInterval = 100 -- Increase value for better performance -
Use simpler crosshair styles (styles 0-3 are most optimized)
-
Disable custom images if not needed
Custom Images Not Loading
Problem: Custom crosshair images don't appear.
Solutions:
- Verify the image URL is accessible and returns a valid image
- Check if the URL uses HTTPS (required for security)
- Ensure the image format is supported (PNG, JPG, GIF, SVG)
- Try using predefined images from config first
Framework Compatibility
ESX Issues
- Ensure ESX is fully loaded before starting sf-crosshair
- Check
es_extendedresource is running - Verify player data is properly loaded
QBCore Issues
- Ensure QBCore is fully loaded before starting sf-crosshair
- Check
qb-coreresource is running - Verify player data is properly loaded
Resource Conflicts
Common Conflicting Resources
- Other crosshair scripts
- UI frameworks that override NUI focus
- Resources that use the same keybinds
Resolution Steps
- Stop conflicting resources temporarily
- Test sf-crosshair functionality
- Adjust keybinds if necessary
- Contact support if conflicts persist
Getting Help
If you continue experiencing issues:
- Check Logs: Always check both server console and F8 client console for errors
- Restart Resource: Try
restart sf-crosshairin server console - Update Script: Ensure you're using the latest version
- Contact Support: Join our Discord for technical support
Support Channels
Information to Provide
When seeking support, please provide:
- Server framework (ESX/QBCore) and version
- Error messages from console
- Steps to reproduce the issue
- Server artifacts version
- Other installed resources that might conflict
Version Information
You can check your current version in the About tab of the crosshair panel or in the server console when the resource starts.
The script includes automatic version checking that will notify you of available updates.