๐Ÿงพ
docs.scriptsfivem.com
  • ๐Ÿ‘‹Welcome
  • ๐ŸงพResources
    • ๐Ÿ“ฑsfphone
      • Installations
      • Config
      • Exports
      • Open phone
    • ๐Ÿš—sfracing
      • Installations
      • Config
      • Exports
    • ๐Ÿ’ตsfbanking
      • Installations
      • Config
      • Exports
    • ๐Ÿ’ปsfctab
      • Installations
      • Config
      • Open tablet
      • Exports // Triggers
    • ๐Ÿ› ๏ธsfcrafting
      • Installations
      • Config
      • Open crafting table
    • ๐Ÿ””sfnotify
      • Installations
      • Config
      • Exports // Triggers
    • ๐Ÿ‘ทโ€โ™‚๏ธsfjob
      • Installations
      • Config
      • Exports // Triggers
    • ๐Ÿ’ปsfjobtab
      • Installations
      • Config
      • Triggers
    • โŒšsfgps
      • Installations
      • Config
      • Exports
    • ๐Ÿ‘ฎsfpolice
      • Installations
      • Config
      • Exports/Triggers
    • ๐Ÿฅsfems
      • Installations
      • Config
      • Exports/Triggers
    • ๐Ÿ…ฟ๏ธsfgarages
      • Installations
      • Config
      • Exports/Triggers
    • ๐Ÿ›๏ธsfdoj
      • Installations
      • Config
      • Exports/Triggers
    • ๐ŸŽฃsffishing
      • Installations
      • Config
      • Triggers
    • ๐Ÿš—sfvehicleshop
      • Installations
      • Config
    • ๐Ÿ”งsfmechanic
      • Installations
      • Config
      • Exports/Triggers
    • ๐Ÿฐsfjail
      • Installations
      • Config
      • Exports
    • ๐Ÿ”‘sfkeys
      • Exports
Powered by GitBook
On this page
  • Lua code examples for Client Side
  • Lua code examples for Server Side
  1. Resources
  2. sfnotify

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")
PreviousConfigNextsfjob

Last updated 1 year ago

๐Ÿงพ
๐Ÿ””