Theme editor

Guide Enable Crosshair FiveM Crosshair Activation Guide

Random threads

Admin

FiveM Pro
Joined
Oct 11, 2024
Messages
155
Reaction score
-1,355
Points
93
Credits
0
Thread owner
Enable the in-game crosshair on your FiveM server running the latest qb-core. Follow our step-by-step guide with images and data to activate the crosshair for improved aiming and gameplay.

enable crosshair.webp

[qb]\qb-smallresources\client\hudcomponents.lua

find this code
Code:
CreateThread(function()
    while true do

        for i = 1, #disableHudComponents do
            HideHudComponentThisFrame(disableHudComponents[i])
        end

        for i = 1, #disableControls do
            DisableControlAction(2, disableControls[i], true)
        end

        DisplayAmmoThisFrame(displayAmmo)

        SetParkedVehicleDensityMultiplierThisFrame(Config.Density.parked)
        SetVehicleDensityMultiplierThisFrame(Config.Density.vehicle)
        SetRandomVehicleDensityMultiplierThisFrame(Config.Density.multiplier)
        SetPedDensityMultiplierThisFrame(Config.Density.peds)
        SetScenarioPedDensityMultiplierThisFrame(Config.Density.scenario, Config.Density.scenario) -- Walking NPC Density
        Wait(0)
    end
end)

Delete this part

Code:
       for i = 1, #disableHudComponents do
            HideHudComponentThisFrame(disableHudComponents[i])
        end
 
Last edited by a moderator:

Latest threads

Featured content

Latest threads

Back
Top