The crosshair mimics the one seen in CS:GO, hence any existing CS:GO crosshair configs will work in FiveM.
Example of a preset crosshair line:
cl_customcrosshair 1;cl_crosshairstyle 5;cl_crosshairsize 3.5;cl_crosshair_drawoutline 1;cl_crosshairthickness 1;cl_crosshair_outlinethickness 0.4;cl_crosshairdot 0;cl_crosshairgap -1
Existing documentation for CS:GO: https://counterstrike.fandom.com/wiki/Crosshair
Toggle the custom crosshair.
Usage: cl_customCrosshair <true|false>
Controls whether the center dot is visible.
Usage: cl_crosshairdot <true|false>
Controls the length of the crosshair's lines.
Usage: cl_crosshairsize 5.0
Controls the style of the crosshair.
Usage: cl_crosshairstyle 0
Controls the thickness of the crosshair's center dot and lines.
Usage: cl_crosshairthickness 0.5
Controls the gap between the crosshair's center dot and the lines.
Usage: cl_crosshairgap 1.0
Controls whether the crosshair should have outline or not. Used in conjunction with cl_crosshair_outlinethickness
.
Usage: cl_crosshair_drawoutline <true|false>
Controls the thickness of the crosshair outline.
Usage: cl_crosshair_outlinethickness 1.0
Ranges from 0
to 5
, set this to 5
if you wish to use custom crosshair colors (those applied via cl_crosshaircolor_r
, cl_crosshaircolor_g
, cl_crosshaircolor_b
)
cl_crosshaircolor_r
, cl_crosshaircolor_g
, cl_crosshaircolor_b
)Usage: cl_crosshaircolor 1
Controls the red component in the crosshair's RGB color value.
Usage: cl_crosshaircolor_r 50
Controls the green component in the crosshair's RGB color value.
Usage: cl_crosshaircolor_g 250
Controls the blue component in the crosshair's RGB color value.
Usage: cl_crosshaircolor_b 50
Controls whether the crosshair should have transparency or not. Used in conjunction with cl_crosshairalpha
.
Setting this command to false
will set the crosshair's alpha to 200
, making it almost opaque. Set to true
if you want to use custom transparency values via cl_crosshairalpha
.
Usage: cl_crosshairusealpha <true|false>
Controls the crosshair's transparency. Valid values go from 0
to 255
.
Usage: cl_crosshairalpha 200
Unused, controls how far the crosshair's center spreads when moving or shooting.
Usage: cl_crosshair_dynamic_splitdist 7.0
Unused, controls the transparency of the inner part of the crosshair's lines when moving or shooting
Usage: cl_crosshair_dynamic_splitalpha_innermod 1.0
Unused, controls the transparency of the outer part of the crosshair's lines when moving or shooting.
Usage: cl_crosshair_dynamic_splitalpha_outermod 0.5
Unused, controls how long the inner and outer part of the crosshair's lines are when moving or shooting.
Usage: cl_crosshair_dynamic_maxdist_splitratio 0.35
The crosshair can be disabled from the server by entering the following line in your server.cfg
file:
setr cl_customCrosshair false
Entering said line will set the convar (console variable) as a replicated variable set to false
.