Configuration Guide
This guide explains how to configure GOD - Crosshair Generator to suit your server's needs.
Config File Location
The main configuration file is located at:
god-crosshair/shared/config.luaConfig Structure
The configuration is divided into two main sections:
1. DefaultSettings
These are the default values applied to new players when they first join the server.
2. WhitelistedWeapons
This array contains all weapon hashes that will display the crosshair when equipped.
Default Settings
General Settings
["General"] = {
["Toggle"] = true, -- Enable/disable crosshair by default
["Firing"] = true, -- Enable firing error simulation
["FiringMultiplier"] = 0.00 -- Multiplier for firing error (0.00 = no error)
}Parameters:
Toggle:
trueorfalse- Whether crosshair is enabled by defaultFiring:
trueorfalse- Enable firing error simulationFiringMultiplier:
0.00to100.00- How much the crosshair spreads when firing
Lines Settings
Parameters:
Toggle:
trueorfalse- Show/hide the crosshair linesColor: Hex color code (e.g.,
#FF0000for red,#00FF00for green)Opacity:
0.00(transparent) to1.00(opaque)Length: Length of each line in viewport width units
Thickness: Thickness of the lines
Distance: Gap between the center and the lines
Outlines Settings
Parameters:
Toggle:
trueorfalse- Show/hide outlines around crosshairColor: Hex color code for outline
Opacity:
0.00to1.00- Outline transparencyThickness: Thickness of the outline border
Blur: Blur amount for the outline (creates a glow effect)
Center Dot Settings
Parameters:
Toggle:
trueorfalse- Show/hide center dotColor: Hex color code for the dot
Opacity:
0.00to1.00- Dot transparencyRoundness:
0.00(square) to10.00(circle) - Shape of the dotThickness: Size of the center dot
Toggle Shotgun:
trueorfalse- Special mode for shotguns
Weapon Whitelist
The WhitelistedWeapons array contains all weapons that will show the crosshair. Only weapons in this list will display the crosshair when equipped.
Adding Weapons
To add a weapon to the whitelist, add its hash to the array:
Common Weapon Hashes
Here are some common weapon hashes you might want to add:
Removing Weapons
To remove a weapon from the whitelist, simply delete its line from the array.
Example Configuration
Here's a complete example configuration:
Applying Changes
After modifying the configuration:
Save the
config.luafileRestart the resource:
restart god-crosshairin server consoleChanges will apply to new players immediately
Existing players will keep their saved settings (they can reset in-game)
Tips
Color Codes: Use online color pickers to find hex codes for your desired colors
Testing: Test different opacity values to find the best visibility
Performance: Lower blur values improve performance
Weapon List: Keep the weapon whitelist manageable for better performance
Troubleshooting
Changes Not Applying
Make sure you saved the file
Restart the resource:
restart god-crosshairCheck for syntax errors in the config file
Invalid Weapon Hash
Verify weapon hashes are correct
Check FiveM documentation for weapon names
Test with known working weapons first
Last updated