xscripts docs
  • X Auction
    • Installation
  • X Burgershot
    • Installation
  • X LOCKPICK SYSTEM
    • Installation
  • X CAR HEIST
    • Installation
  • X Car Plate Scratch
    • Installation
  • X BRAKE CUTTER
    • Installation
  • X BANK LOAN
    • Installation
  • X NOTIFY
    • Installation
  • X NOTIFY V2
    • Installation
Powered by GitBook
On this page
  1. X NOTIFY V2

Installation

Installation

Usage

Manual

Copy

    exports['xNotifyv2']:SendXNotify("This is an success notification!", "success", "Success")
    
    exports['xNotifyv2']:SendXNotify("This is an info notification!", "info", "Information")
 
    exports['xNotifyv2']:SendXNotify("This is an error notification!", "error", "Error")

Automatic es_extended/client/functions.lua & replace the function ESX.ShowNotification copy & paste below

Copy


ESX.ShowNotification = function(message, type, length)
    local notifyType = "info" 
    if type == "success" then
        notifyType = "success"
    elseif type == "error" then
        notifyType = "error"
    end

    exports['xNotifyv2']:SendXNotify(message, notifyType, "Notification")
end
PreviousInstallation

Last updated 4 months ago

Page cover image