Help with HUD-Script

Hey :slight_smile:
I have a problem with a script. I want to combine this script

to deactivate all HUDs with this Hotkey

– Toggle HUD Hotkey

Toggle=true

if Config.EnableHud then
Citizen.CreateThread(function()
while true do
Citizen.Wait(1)
if IsControlJustPressed(0, Keys[‘F9’]) and Toggle == true then
Toggle = false
TriggerEvent(‘es:setMoneyDisplay’, 0.0)
ESX.UI.HUD.SetDisplay(0.0)
elseif IsControlJustPressed(0, Keys[‘F9’]) and Toggle == false then
Toggle = true
TriggerEvent(‘es:setMoneyDisplay’, 1.0)
ESX.UI.HUD.SetDisplay(1.0)
end
end
end)
end

Anyone can help me with this and can combine it? :smiley:
Thank u <3
~ Chris

1 Like

-Bump-

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.