📱
Shawn's Scripting
  • Overview
    • 💡Documentation
  • Products
    • 🛠️Shawn's Chat V2
      • ✔️Dependencies
      • 🧠Installation
      • 📝Admin Groups
      • 🔨Ace Perms Usage
      • ESX Notify To Overextended Notify
      • AdmWarn for ox_inventory giveitem
      • AdmWarn for fivem_appearance
      • AdmWarn for illenium-appearance
      • AdmWarn for /car
Powered by GitBook
On this page
  1. Products
  2. Shawn's Chat V2

ESX Notify To Overextended Notify

Now, personally I do not like the esx_notify look so I have edited the function so that every script that uses esx_notify now uses ox_lib.

Go to es_extended > client > functions.lua. Then look for the ESX.ShowNotification function and replace it with this below:

function ESX.ShowNotification(message, notifyType, length)
    if GetResourceState("esx_notify") ~= "missing" then
        return
        lib.notify({
            title = 'Server',
            description = message,
            showDuration = true,
            position = 'center-right',
            style = {
                backgroundColor = '#141517',
                color = '#C1C2C5',
                ['.description'] = {
                  color = '#909296'
                }
            },
            icon = 'circle-info'
        })
    end

    print("[^1ERROR^7] ^5ESX Notify^7 is Missing!")
end

Then, go to es_extended > fxmanifest.lua and add this to it:

shared_script '@ox_lib/init.lua'
PreviousAce Perms UsageNextAdmWarn for ox_inventory giveitem

Last updated 5 months ago

🛠️