Common questions and solutions for GOD - Crosshair Generator.
General Questions
Q: What is GOD - Crosshair Generator?
A: GOD - Crosshair Generator is an advanced crosshair customization system for FiveM servers. It allows players to fully customize their crosshair appearance, including colors, size, opacity, and style, similar to Valorant's crosshair system.
Q: Do I need any additional dependencies?
A: No, the script works standalone. It doesn't require any framework (ESX, QBCore, etc.) or additional resources.
A: No, the script is optimized for performance. The crosshair is rendered using lightweight CSS/HTML, and weapon checks are done efficiently. However, using high blur values may slightly impact performance.
Q: Can I use this with other crosshair scripts?
A: It's not recommended. Multiple crosshair scripts can conflict with each other. Disable other crosshair resources before using this one.
Q: The resource won't start. What should I do?
A: Check the following:
Verify the folder name is exactly god-crosshair
Ensure fxmanifest.lua is in the root folder
Check that ensure god-crosshair is in your server.cfg
Look at the server console for specific error messages
Verify all files are present (check file structure)
Q: I get an error about missing files. What's wrong?
A: Make sure all files from the resource package are present:
client/ folder with .lua files
server/ folder with .lua files
shared/ folder with config.lua
ui/ folder with HTML, CSS, JS, and image files
fxmanifest.lua in the root
Q: The menu opens but looks broken. Why?
A: This is usually a UI file issue:
Check that all files in ui/ folder are present
Verify ui/index.html exists and is not corrupted
Check F8 console for JavaScript errors
Ensure CSS files are loading correctly
Try restarting the resource: restart god-crosshair
Q: How do I add more weapons to the whitelist?
A: Edit shared/config.lua and add weapon hashes to the WhitelistedWeapons array:
Then restart the resource.
Q: Can I change the default crosshair settings?
A: Yes, edit the DefaultSettings section in shared/config.lua. New players will get these defaults, but existing players keep their saved settings.
Q: How do I reset all player crosshair settings?
A: Delete or clear the shared/database.json file, then restart the resource. All players will get the default settings on next spawn.
Q: Can I disable the crosshair for specific weapons?
A: Yes, remove those weapons from the WhitelistedWeapons array in config.lua. The crosshair will only appear for weapons in the whitelist.
Q: The crosshair doesn't appear when I have a weapon. Why?
A: Check these:
Is the weapon in the whitelist? (see Configuration)
Is "Toggle Crosshair" set to ON in the menu?
Do you have the weapon equipped (not just in inventory)?
Try restarting the resource
Q: How do I share my crosshair config with friends?
A:
Click "Copy Config" button
Share the config ID (number) with your friend
They enter the ID and click "Paste Config"
Q: My config ID doesn't work when I paste it. Why?
A: Config IDs are temporary and stored on the server. They may be cleared if:
The resource is restarted
The server clears old configs
Try getting a fresh config ID from the person who created it.
Q: Can I have different crosshairs for different weapons?
A: Currently, the script uses one crosshair configuration per player. All whitelisted weapons will show the same crosshair. This feature may be added in future updates.
Q: The menu won't close. What do I do?
A: Try:
Type /crosshair again to toggle
Reconnect to the server if stuck
Check F8 console for errors
A: Use hexadecimal color codes in the format #RRGGBB:
You can use online color pickers to find hex codes.
Q: How do I make the crosshair more visible?
A: Try:
Use contrasting colors (white on dark backgrounds)
Increase opacity to maximum (1.00)
Add outlines with contrasting colors
Adjust blur for a glow effect
Q: Can I make the crosshair smaller/larger?
A: Yes, adjust these settings:
Line Length: Controls line size
Center Dot Thickness: Controls dot size
Line Thickness: Controls line width
Distance Between Lines: Affects overall crosshair size
Q: What does "Shotgun Crosshair" mode do?
A: When enabled, it creates a hollow center dot with an outline instead of a solid dot. This is useful for shotgun-type weapons where you want to see more of the target area.
Q: How do I change the language?
A: Edit ui/js/settings.js and change the Locale.Lang value:
Then restart the resource.
Q: Can I add my own language?
A: Yes, see the Localization Guide for detailed instructions on adding new languages.
Q: Some text is still in English after changing language. Why?
A: Make sure you:
Translated all labels in the language object
Checked that the language code is correct
Technical Issues
Q: I get JavaScript errors in F8 console. What's wrong?
A: Common causes:
Missing UI files (check ui/ folder)
Corrupted settings.js or script.js
Browser cache issues (try clearing cache)
Q: The crosshair flickers or disappears randomly. Why?
A: This could be:
Weapon whitelist issue (weapon not properly detected)
Script conflict with other resources
Performance issue (lower blur values)
Check server console for errors
Q: Settings don't save. What's the problem?
A: Check:
Server has write permissions for shared/database.json
No file permission errors in server console
Resource has proper access to save files
Database file isn't corrupted (check JSON syntax)
Q: Can I use this script in an escrow/protected resource?
A: The script already has escrow protection. The fxmanifest.lua includes:
This means only shared/ files are unprotected (for configuration). All other files are protected.
A: Minimal impact:
Client-side rendering (no server load)
Efficient weapon checking (1 second intervals)
Only active when players have whitelisted weapons
Q: Will it cause FPS drops?
A: Generally no, but:
High blur values may cause slight FPS impact
Very complex crosshairs (multiple outlines, high opacity) may affect performance on lower-end PCs
Most players report no noticeable FPS impact
Q: How many players can use this simultaneously?
A: There's no limit. The script is designed to handle all players on your server simultaneously. Each player's settings are stored individually.
Q: Is this compatible with ESX/QBCore?
A: Yes, it's framework-agnostic and works with any FiveM server setup.
Q: Does it work with weapon mods?
A: Yes, as long as the weapon hash is added to the whitelist. You may need to find the correct weapon hash for custom weapons.
Q: Can I use this with other UI mods?
A: Generally yes, but conflicts can occur if:
Another script modifies the same UI elements
Another script uses the same NUI callbacks
Test thoroughly if using multiple UI mods.
Q: Can I modify the UI design?
A: Yes, you can edit:
ui/css/menu.css - Menu styling
ui/css/crosshair.css - Crosshair styling
ui/css/global.css - Global styles
ui/index.html - HTML structure
Note: If the resource is escrowed, you may have limited access to some files.
Q: How do I add custom features?
A: You would need to modify the source code:
client/main.lua - Client-side logic
server/main.lua - Server-side logic
ui/js/script.js - UI functionality
Note: This requires access to non-escrowed files.
Q: Can I integrate this with my framework's weapon system?
A: Yes, you can modify the weapon checking logic in client/functions.lua to integrate with your framework's weapon system. You'll need to adapt the IsWeaponWhitelisted() function.
Q: Where can I get help?
A:
Check this documentation first
Review server console for error messages
Check F8 console (client-side) for JavaScript errors
Contact the development team through official channels
Q: How do I report a bug?
A: When reporting bugs, include:
F8 console errors (if any)
Steps to reproduce the issue
Your server setup (framework, other scripts)
Screenshots if applicable
Q: Will there be updates?
A: Check with the development team for update schedules and new features.
Still Have Questions?
If you can't find the answer to your question here:
Check the other documentation sections:
Review the code comments in the source files
Contact support through official channels