MSK Scripts
TebexGithubDiscordMusiker15
  • MSK Scripts
    • Welcome
  • Common Issues
    • Keymaster
  • Miscellaneous
    • Change Notifications
  • Scripts
    • MSK Core
      • Installation
      • Functions
        • Client
          • Ace Permission
          • Commands
          • Coords
          • Player
          • Points
          • Request
          • Scaleform
          • UI
            • Input
            • Numpad
            • Progressbar
            • TextUI
          • Vehicle
        • Shared
          • String
          • Math
          • Table
          • Timeout
          • Vector
        • Server
          • Ace Permission
          • Ban System
          • Commands
          • Player
          • Scaleform
          • UI
            • Input
            • Numpad
            • Progressbar
            • TextUI
    • MSK Banking
      • Installation
        • Paycheck Transaction
      • Config
      • Exports
        • Client
        • Server
      • Events
        • Client
        • Server
      • Server Callbacks
    • MSK EngineToggle
      • Guides
      • Exports
        • Client
      • Event Handler
        • Client
        • Server
    • MSK Fuel
      • Config
      • Exports
        • Client
    • MSK Garage
      • Config
      • Exports
        • Client
    • MSK Handcuffs
      • Guides
        • General Edits for Jobs
        • Jaksam Job Creator
        • Multichar
        • ox_inventory
      • Config
      • Admin Commands
      • Exports
        • Client
        • Server
      • Events
        • Client
        • Server
      • Event Handlers
    • MSK Radio
      • Config
      • Exports
        • Client
        • Server
      • Events
        • Server
    • MSK Simcard
      • Installation
        • Config.Database
      • Config
    • MSK VehicleKeys
      • Guides
        • Installation
        • Integrations
      • Config
      • Admin Commands
      • Exports
        • Client
        • Server
    • MSK Whitelist
      • Config
      • Exports
        • Client
        • Server
    • MSK Weaponammo
Powered by GitBook
On this page
  • MSK Core
  • Single Script
  • ESX
  1. Miscellaneous

Change Notifications

Change the Notifications

MSK Core

If you want to change the Notifications for ALL Scripts from us, then go to msk_core/config.lua and change the following:

Config.Notification = 'custom'

Config.customNotification = function(title, message, typ, duration)
    -- Add your own clientside Notification here
end

Single Script

If you want to change the Notifications for only one script, then go to the config.lua of the script and change the following:

Config.Notification = function(source, message, typ)
    if IsDuplicityVersion() then
        -- Add your serverside notification here
    else
        -- Add your clientside notification here
    end
end

ESX

If you want to change the Notification of ESX to our Notification then go to es_extended/client/functions.lua and search for:

function ESX.ShowNotification(message, notifyType, length)
    if GetResourceState("esx_notify") ~= "missing" then
        return exports["esx_notify"]:Notify(notifyType, length, message)
    end

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

Replace this function with the following function:

function ESX.ShowNotification(message, notifyType, length)
    if GetResourceState("msk_core") ~= "missing" then
        return exports["msk_core"]:Notification('Information', message, notifyType, length)
    end

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

Last updated 7 months ago