Exports // Triggers
Variable
Type
Example
type
string
info, error, success, twitter, dispatch
message
string
Test message
header
string or boolean
10-13a, Some text or false
time
number
20000
Lua code examples for Client Side
exports["sfnotify"]:notify(type, message, header, time)
-- examples, default time is 10000
exports["sfnotify"]:notify("info", "test message")
exports["sfnotify"]:notify("info", "test message", false, 5000)
exports["sfnotify"]:notify("info", "test message", "Notification")
TriggerEvent("sfnotify", "dispatch", "test message", "10-13a")
TriggerEvent("sfnotify:cinematic", true) -- if set true notifications do not show
TriggerEvent("sfnotify:cinematic", false) -- if set false notifications show up
Lua code examples for Server Side
TriggerClientEvent("sfnotify", source, "info", "test message")
Last updated