Theme editor

Guide Turn Off Default HUD Disable GTA V HUD

Admin

FiveM Pro
Joined
Oct 11, 2024
Messages
153
Reaction score
8,825
Points
93
Thread owner
Disable the default GTA V HUD in FiveM to create a clean UI experience for roleplay and custom servers. Use this simple script to remove the default radar, health, and armor bars. Compatible with qb-core and ESX.

default hud.webp



What is the Default HUD in FiveM?

By default, FiveM uses GTA V’s native HUD, which includes the radar, health bar, armor bar, and wanted level display. However, many roleplay and custom servers prefer to disable the default HUD and use a custom UI instead. This guide will show you how to completely remove the default HUD in FiveM.

How to Disable the Default GTA V HUD in FiveM

Step 1: Copy the Code

Paste the following code inside your client.lua file:
Code:
Citizen.CreateThread(function()
    while true do
        Citizen.Wait(1)

        if not IsAimCamActive() or not IsFirstPersonAimCamActive() then
            HideHudComponentThisFrame(14)
        end

        if IsHudComponentActive(1) then
            HideHudComponentThisFrame(1)
        end

        if IsHudComponentActive(6) then
            HideHudComponentThisFrame(6)
        end

        if IsHudComponentActive(7) then
            HideHudComponentThisFrame(7)
        end

        if IsHudComponentActive(9) then
            HideHudComponentThisFrame(9)
        end

        if IsHudComponentActive(0) and not IsPedInAnyVehicle(PlayerPedId(), true) then
            HideHudComponentThisFrame(0)
        end

        SetPlayerHealthRechargeMultiplier(PlayerId(), 0.0)
    end
end)

Citizen.CreateThread(function()
    while true do
        Citizen.Wait(800)
        local playerPed = PlayerPedId()
        local vehicle = GetVehiclePedIsTryingToEnter(playerPed)

        if vehicle and DoesEntityExist(vehicle) then
            local driverPed = GetPedInVehicleSeat(vehicle, -1)

            if GetVehicleDoorLockStatus(vehicle) == 7 then
                SetVehicleDoorsLocked(vehicle, 2)
            end

            if driverPed and DoesEntityExist(driverPed) then
                SetPedCanBeDraggedOut(driverPed, false)
            end
        end
    end
end)


Step 2: Add the Code to Your Client Script

  • Navigate to your FiveM server’s client-side resources.
  • Open or create a client.lua file.
  • Paste the above script inside the file.

Step 3: Restart Your Server

After adding the script, restart your FiveM server for the changes to take effect.

  • If you’re running a qb-core or ESX server, make sure the script is properly integrated into your resource structure.
  • If the HUD is still showing, ensure that no other scripts are forcing the HUD to be enabled.
 
Last edited by a moderator:
Thread 'Toxic  QBCore -OX inv&target'
Toxic QBCore -OX inv&target - Ready-to-Play Roleplay Base All scripts are open source - no...
Thread 'LB PHONE 🎉 ALL BUGS FIXED - ESX & QBCORE TESTED ✅'
Instagram, TikTok, Tinder, banking apps, and all other applications have been fixed, and the...
Thread 'Toxic  Latest EN QBCore'
The Toxic V3.1 QBCore RP Server Base is a fully open-source, ready-to-play FiveM RP framework...
Thread 'V4 ESX PvP Server Files for FiveM–PvP Gamemode with Arenas and GunGame'
The V4 ESX PvP Server Files offer a complete, combat-focused game mode package for FiveM...
Thread 'FiveM 430+ Car Pack | Unbranded Vehicles for RP Servers'
FiveM Unbranded Vehicle Pack (430 Cars) – Complete Car Collection for RP Servers The FiveM...
Thread 'New QBCore OX Basic Pack'
🚀 What is the New QBCore OX Basic Pack? The New QBCore OX Basic Pack is a pre-configured FiveM...
Thread 'New V3.2 EN QBCore Best FiveM RP Base Newest'
Toxic V3.2 EN QBCore RP Base – FiveM Server Files Download the newest Toxic V3.2 EN QBCore RP...
Thread 'Toxic V3 QBCore'
Toxic V3 QBCore ・Open source・No licensed scripts・ Framework: QBCore QB Version Latest...
Thread 'QBCore Basic RP Base'
QBCore Basic RP Base QBCore Version : '1.3.0' Latest *** Hidden text: You do not have...
Thread 'QBCore V2 FiveM RP base'
The Toxic QBCore V2 RP Server is a fully open-source, ready-to-use FiveM RP server base, built...
Thread 'New Ox QBCore Full Server file'
All scripts are open source - no licensed scripts Framework: QBCore - Newest QBCore Version...
Thread 'LB Tablet Edited Version for QBCore'
LB Tablet Edited Version for QBCore All bugs have been fixed. *** Hidden text: You do not...
Thread 'Paleto Sheriff MLO - FiveM'
Paleto Sheriff MLO - FiveM *** Hidden text: You do not have sufficient rights to view the...
Thread 'Molo Alcatraz Mlo - Tested ✔️'
Molo Alcatraz Mlo - Tested ✔️ Open Sources ✔️ *** Hidden text: You do not have sufficient...
Thread 'Toxic ESX legacy | Server Files'
Toxic ESX legacy | Server File ✔ Latest ESX Legacy Framework ✔ Fully Open-Source – No...
Thread 'Toxic V3 PVP Server File'
Download the Toxic V3 PVP Server File with the old ESX framework. Includes a fully configured...
Thread 'QBCore Latest Server files'
QBCore Latest Server files - Fivem rp base - Download fivem server files Open source・No...
Thread 'Kingmaps Free MLO Pack'
Enhance your FiveM server with the Kingmaps MLO Pack! 🚀 The package includes: 🏪 kingmaps_247...
Thread 'Energy Fast customs Mlo ( clothes + vehicles )'
Energy Fast Customs MLO – FiveM maps for clothes shops and vehicle garages. *** Hidden text...
Back
Top Bottom