Page cover

πŸ–ΌοΈHUD V2

ESX / QB | Fully Customizable | 0.02ms (Best Optimize) | Full Responsive UI (4k Supported) | Car Nitro System | Notifications System | Safe Zone System | Car wipe System | Admin Announcement

Notifications Implementation

Types: error, success, info, server, carwipe.

  • Export: exports["if-hudv2"]:SendNotification(message, type, duration)

  • Event: TriggerEvent("if-hudv2:SendNotification", message, type, duration)

exports["if-hudv2"]:SendNotification("Pay attention!", "info", 3000)
Progressbar Implementation
  • Export: exports["if-hudv2"]:ProgressStart(Message, Duration, Options)

exports["if-hudv2"]:ProgressStart("Performing an action", 3000, {
    FreezePlayer = true, 
    footerMessage = "Searching a sandwich...",
    animation = {
        type = "anim",
        dict = "anim@mp_player_intmenu@key_fob@", 
        lib ="fob_click"
        -- or scenario:
        -- type = "scenario",
        -- Scenario = "PROP_HUMAN_BUM_BIN", 
    },
    onFinish = function()
        --Code here
    end, onCancel = function()
        --Code here
    end
})
Zones Notifications Implementation

Types: green, red, warning.

  • Export: exports["if-hudv2"]:SendZoneNotification(message, type), exports["if-hudv2"]:HideZoneNotification()

  • Event: TriggerEvent("if-hudv2:SendZoneNotification", message, type), TriggerEvent("if-hudv2:HideZoneNotification")

exports["if-hudv2"]:SendZoneNotification("Pay attention in this zone!", "warning")
exports["if-hudv2"]:HideZoneNotification()
Dialog Implementation
  • Export: exports["if-hudv2"]:showDialog(author, message, callback, yesBtnText, noBtnText)

  • Event: TriggerEvent("if-hudv2:showDialog", author, message, callback, yesBtn, noBtn)

showDialog('HUD', 'Wanna see a happy face in F8?', function(cb)
    if (cb == 'yes') then
        print(':)')
    else
        print(':0 :|')
    end
end)
Draw Text Implementation
  • Exports: exports["if-hudv2"]:drawText(button, buttonAction, buttonMessage), exports["if-hudv2"]:hideText(), exports["if-hudv2"]:changeText(button, buttonAction, buttonMessage)

  • Events: TriggerEvent("if-hudv2:drawText", button, buttonAction, buttonMessage), TriggerEvent("if-hudv2:changeText", button, buttonAction, buttonMessage), TriggerEvent("if-hudv2:hideText")

exports["if-hudv2"]:drawText('E', 'Close this', 'This is a message')
Wait(5000)
exports["if-hudv2"]:hideText()

Last updated

Was this helpful?