Exports & Triggers

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

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)

ExportArguments

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

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)

Last updated