Disabling HUD

How to disable hud while in garages/impounds.

Exports

Firstly make sure to get your exports from your hud before going further.

Setting

To disable hud headover to the /client/workers.lua and find:

HandleHud = function(hideHud)
    if hideHud then
        -- ADD EXPORT TO HIDE HUD
    else
        -- ADD EXPORT TO SHOW HUD
    end
    --[[
        COMPATIBILITY FOR ZSX UIV2
    ]]
    if IsUIV2Started then
        if hideHud then
            exports[ZSX_UIV2]:HideInterface(true)
            GlobalState.UIV2_InterruptThread = true
        else
            exports[ZSX_UIV2]:HideInterface(false)
            GlobalState.UIV2_InterruptThread = false
        end
    end
end

In the above function add in such statement your exports to disable your hud. In that example I will use 2 exports to hide hud:

The result should look like this:

Last updated