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.
[qb]\qb-smallresources\client\hudcomponents.lua
find this code
[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: