⬇️Installation
This is a standalone plugin that does not require any frameworks. You can use the exports or events down below that we provide to you send a notification to a player
-- Usage in a client script
TriggerEvent('tosun-notification', text, time, notifytype, options)
or
exports["Tosun-Notification"]:Notify(text, time, notifytype, options)
-- Usage in a server script
TriggerClientEvent('tosun-notification', source, text, time, notifytype, options)
-- Usage with the options (use the options only when using msg and twt notification types)
exports["Tosun-Notification"]:Notify("TEST TEST TEST", 5000, "twt", {
twtName = "Tosun-Test"
})
exports["Tosun-Notification"]:Notify("TEST TEST TEST", 5000, "msg", {
msgNumber= "538-3838"
})
-- notification types
-check
-info
-ann
-msg
-twt
-call
-tsnbank
-bill
-lspd
-save
-ems
-error
-- QB CORE ENTEGRESİ
```lua
function QBCore.Functions.Notify(text, type, length)
type = notifytype
exports["Tosun-Notification"]:Notify(text, notifytype, length, nil)
end
```
Last updated