Literally no reason for this qbcore has it built in you just go to
Server\Files\resources\[qb]\qb-smallresources\config
and on this line you remove 14 to bring back crosshair
Config.Disable = {
disableHudComponents = {1, 2, 3, 4, 7, 9, 13, 19, 20, 21, 22}, -- Hud Components:
https://docs.fivem.net/natives/?_0x6806C51AD12B83B8 ----disableHudComponents = {1, 2, 3, 4, 7, 9, 13, 14, 19, 20, 21, 22},----
disableControls = {37}, -- Controls:
https://docs.fivem.net/docs/game-references/controls/
displayAmmo = true -- false disables ammo display
}
- 1 : WANTED_STARS
- 2 : WEAPON_ICON
- 3 : CASH
- 4 : MP_CASH
- 5 : MP_MESSAGE
- 6 : VEHICLE_NAME
- 7 : AREA_NAME
- 8 : VEHICLE_CLASS
- 9 : STREET_NAME
- 10 : HELP_TEXT
- 11 : FLOATING_HELP_TEXT_1
- 12 : FLOATING_HELP_TEXT_2
- 13 : CASH_CHANGE
- 14 : RETICLE
- 15 : SUBTITLE_TEXT
- 16 : RADIO_STATIONS
- 17 : SAVING_GAME
- 18 : GAME_STREAM
- 19 : WEAPON_WHEEL
- 20 : WEAPON_WHEEL_STATS
- 21 : HUD_COMPONENTS
- 22 : HUD_WEAPONS