JC Scripts
StoreDiscordYouTube
  • πŸ‘‹Welcome
  • β›” Fivem escrow system
    • ❔Error parsing script ... <\1>
    • ❓Failed to verify protected resource
  • Assets
    • πŸ’…Nails
      • Dependencies
      • Installation guide
        • QBCore
        • ESX
      • Config
      • FAQ
    • 🀑Peds
      • Dependencies
      • Installation guide
        • QBCore / ESX
      • Commands
      • Config
      • FAQ
    • πŸ’°Taxes
      • Dependencies
      • Installation guide
        • QBCore / ESX
      • Commands
      • Config
      • FAQ
    • Notify
      • Installation guide
        • QBCore
        • ESX
      • Config
      • FAQ
    • πŸ—ΊοΈPostal (Free)
      • Dependencies
      • Installation guide
        • Standalone
      • Commands
      • Config
      • FAQ
Powered by GitBook
On this page
  1. Assets
  2. Notify
  3. Installation guide

ESX

1

Go to es_extended/client/functions.lua

Find ESX.ShowNotification

function ESX.ShowNotification(message, notifyType, length)
    return IsResourceFound('esx_notify') and exports['esx_notify']:Notify(notifyType, length, message)
end

Add code in top ESX.ShowNotification

if GetResourceState("jc-notify") ~= "missing" then
    TriggerEvent('jc-notify:client:notify', message, notifyType, length)
    return true
end

Full code

function ESX.ShowNotification(message, notifyType, length)
    if GetResourceState("jc-notify") ~= "missing" then
        TriggerEvent('jc-notify:client:notify', message, notifyType, length)
        return true
    end
    return IsResourceFound('esx_notify') and exports['esx_notify']:Notify(notifyType, length, message)
end
PreviousQBCoreNextConfig

Last updated 3 months ago