IF-Store Docs
DiscordYoutubeStoreMy Hosting
  • 📚Welcome To IF-Developments!
  • About us
    • 💗Support
    • 📉Common issues
    • ⁉️Terms of Service
    • ⚙️Download & Install Resources
  • Resources
    • 💰Banking V1
    • 💰Banking V2
    • 💰Redline Banking
    • 💰Banking V3
    • 🖼️HUD V1
    • 🖼️HUD V2
    • 🖼️HUD V3
    • 🖼️DPS HUD
    • 👕Luxury Clothing Store
    • 🖇️Crafting V1
    • 🐶Pets V2
    • GameShop
    • ⚙️Login/Signup
    • 🎆Redline Garage
    • 🛁Hot Tube
    • 💬Chat V1
Powered by GitBook
On this page

Was this helpful?

  1. Resources

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()

PreviousHUD V1NextHUD V3

Last updated 1 year ago

Was this helpful?

🖼️
Page cover image