Wise Scripts Docs
ShopDiscord
  • 👋Welcome
  • 💻 Scripts
    • 🚙Wise Garage
      • Installation
      • Database
      • Events
      • Example Configs
        • Main
        • Garages
        • Impounds
    • 🖥️Wise Hud
      • Installation
      • Example Configs
        • Main
    • 🦌Wise Hunting
      • Installation
      • Example Configs
        • Main
        • Animals
        • Huntareas
        • Market
    • 🔫Wise Gungame
      • Installation
      • Setup for Ambulancejob
    • 👥Wise Faction
      • Installation
      • Exports
      • Events
      • Setup FFA & Gangwar
      • Example Configs
        • Main
        • FFA
        • Gangwar
        • Robbery
        • Shop
        • Missions
    • 🔔Wise Notify
      • Installation
      • Exports & Triggers
      • ESX Replacements
    • ⚠️Wise Report
      • Installation
    • 🎮Wise Lifeinvader
      • Installation
  • 🏡PROPS
    • 🪨Wise Ore Props Pack
    • ✨Wise Crystal Props Pack
  • 🧟‍♂️PEDS
    • 🎃HALLOWEEN Pumpkin Monster
    • 🎃HALLOWEEN MR Bright
Powered by GitBook
On this page
  • Exports
  • Notify Types
  • Color Codes
  • Examples
  1. 💻 Scripts
  2. Wise Notify

Exports & Triggers

Here you have all Exports & Triggers you can use in other Scripts

PreviousInstallationNextESX Replacements

Last updated 1 year ago

Exports

For all exports it is important to use exports.wise_notify: before the export Name

e.g: exports.wise_notify:Notify(type, title, message, time)

Export
Arguments

Notify(type, title, message, time) => void

type => string title => string message => string time => number

Announce(title, message, time) => void

title => string message => string time => number

PoliceAnnounce(title, message, time) => void

title => string message => string time => number

Warn(title, message, time) => void

message => string time => number

HelpNotify(key, message) => void

key => string time => number

Notify Types

  • info

  • warn

  • success

  • error

Color Codes

~r~ = Red
~b~ = Blue
~g~ = Green
~y~ = Yellow
~p~ = Purple
~c~ = Grey
~m~ = Dark Grey
~u~ = Black
~o~ = Orange
~s~ = Reset

Examples

local message = "I ~r~LOVE~s~ WiseScripts"
local time = 5000

-- NOTIFY
local notifyType = "info"
exports.wise_notify:Notify(notifyType, "Information", message, time)
TriggerEvent("wise_notify", notifyType, "Information", message, time)

-- ANNOUNCE
exports.wise_notify:Announce("Announce", message, time)
TriggerEvent("wise_announce", "Announce", message, time)

-- POLICE ANNOUNCE
exports.wise_notify:PoliceAnnounce("Police Announce", message, time)
TriggerEvent("wise_policenotify", "Police Announce", message, time)

-- WARN
exports.wise_notify:Warn("Server Name", message, time)
TriggerEvent("wise_warn", "Server Name", message, time)

-- LIFEINVADER
local phonenumber = 123
TriggerEvent("wise_lifeinvader", "Server Name", phonenumber, time)

-- HELPNOTIFY ONLY USE IN LOOP (in use ~0.05ms)
exports.wise_notify:HelpNotify("E", message)
TriggerEvent("wise_helpnotify", "E", message)
local message = "I ~r~LOVE~s~ WiseScripts"
local time = 5000

-- NOTIFY
TriggerClientEvent("wise_notify", playerId, "info", "Title", message, time)

-- ANNOUNCE
TriggerClientEvent("wise_announce", -1, "ANNOUNCE", message, time)

-- POLICE ANNOUNCE
TriggerClientEvent("wise_policenotify", -1, "Police Announce", message, time)

-- WARN
TriggerClientEvent("wise_warn", playerId, "Server Name", message, time)

-- LIFEINVADER
TriggerClientEvent("wise_lifeinvader", playerId, "Server Name", 123, time)
🔔