[FREE RELEASE] Code After S*x - Notification Script

Our Current Release is Notification script.
Enjoy!


How can i install this script?

  • Download script by click this button.
  • Drag and drop into your resources file.
  • Open server.cfg file and ensure cas-notify

Notify Types

  • warn
  • info
  • success
  • error

QBCore Settings

function QBCore.Functions.Notify(text, texttype, length, playsound)
    if texttype == "primary" then
        texttype = "info"
    end
    if not text then
        text = "No message."
    elseif not texttype then
        texttype = "error"
    elseif not length then
        length = 5000
    elseif not playsound then
        playsound = false
    end
    exports["cas-notify"]:Notify({
        message = text,
        ts = texttype,
        time = length or 4000,
        playsound = playsound
    })
end

Notification example export

RegisterCommand("notify",function()
    exports["cas-notify"]:Notify({
        message = "Lorem ipsum text test for CFX.re community.",
        ts = "success" or "warn" or "info" or "error",
        time = 4000,
        playsound = true
    })
end)

Example server side Trigger

RegisterCommand("notify",function(playerId)
    TriggerClientEvent("Notify", playerId, --[[usually source or src]]{
        message = "Lorem ipsum text test for CFX.re community.",
        ts = "success",
        time = 4000,
        playsound = true
    })
end)

Requirements

None X

Download
Added direct download.

4 Likes

this design for free?? :flushed:

1 Like

this design for you <3

Please include a direct download as mentioned in the rules

Added direct download link.