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.lua

Config 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: true or false - Whether crosshair is enabled by default

  • Firing: true or false - Enable firing error simulation

  • FiringMultiplier: 0.00 to 100.00 - How much the crosshair spreads when firing

Lines Settings

Parameters:

  • Toggle: true or false - Show/hide the crosshair lines

  • Color: Hex color code (e.g., #FF0000 for red, #00FF00 for green)

  • Opacity: 0.00 (transparent) to 1.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: true or false - Show/hide outlines around crosshair

  • Color: Hex color code for outline

  • Opacity: 0.00 to 1.00 - Outline transparency

  • Thickness: Thickness of the outline border

  • Blur: Blur amount for the outline (creates a glow effect)

Center Dot Settings

Parameters:

  • Toggle: true or false - Show/hide center dot

  • Color: Hex color code for the dot

  • Opacity: 0.00 to 1.00 - Dot transparency

  • Roundness: 0.00 (square) to 10.00 (circle) - Shape of the dot

  • Thickness: Size of the center dot

  • Toggle Shotgun: true or false - 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:

  1. Save the config.lua file

  2. Restart the resource: restart god-crosshair in server console

  3. Changes will apply to new players immediately

  4. 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-crosshair

  • Check 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