HyperCode Service
  • 👋Welcome to HyperCode
  • Important Links
    • 💡HyperCode Shop
    • ✨HyperCode Discord
  • Guides
    • 📪Style Config
    • Notify / HelpNotify / Progressbar
  • 📝ADVANCED NOTIFICATION
    • 💡General
    • 🪛Config
  • 📝INVENTORY
    • 💡General
    • 🪛Config
    • ⚙️Exports & Events
  • 📝ALL IN ONE PEDS
    • 💡General
    • 🪛Config
  • 📝COLLECTORS
    • 💡General
    • 🪛Config
  • 📝CASE SYSTEM
    • 💡General
    • 🪛Config
  • 📝BLACKMARKET
    • 💡General
    • 🪛Config
  • 📝BACKPACK SYSTEM
    • 💡General
    • 🪛Config
  • 📝CAR RENTALS
    • 💡General
    • 🪛Config
  • 📝SHOP SYSTEM
    • 💡General
    • 🪛Config
  • 📝TEAMCHAT
    • 💡General
    • 🪛Config
  • 📝CLOTHING STORES
    • 💡General
    • 🪛Config
  • 📝GARAGE SYSTEM
    • 💡General
    • 🪛Config
  • 📝FARMING SYSTEM
    • 💡General
    • 🪛Config
Powered by GitBook
On this page
  1. Guides

Notify / HelpNotify / Progressbar

All our scripts are configured with the HyperCode Notify script.

If you want to use default ESX Notify and HelpNotify you need to adjust the config file in the following way. You are also free to use any other notifcation resource, just replace the code for your notifcation system.

-- Notification
Config.ShowNotification = function(source, message, title, type)
    if IsDuplicityVersion() then -- serverside
        TriggerClientEvent("esx:showNotification", source, message)
    else -- clientside
        ESX.ShowNotification(message)
    end
end

-- HelpNotify
Config.ShowHelpNotification = function(message)
  ESX.ShowHelpNotification(message)
end

-- Progressbar
Config.CallProgressBar = function(source, message, duration)
    Citizen.CreateThread(function()
        exports["esx_progressbar"]:Progressbar(message, duration)
    end)
end
PreviousStyle ConfigNextGeneral

Last updated 4 months ago